mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Local development debugger support
This commit is contained in:
parent
11370bf80d
commit
916f7d97af
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -80,5 +80,12 @@
|
||||
},
|
||||
"terminal.integrated.wordSeparators": " (){}',\"`─‘’“”|",
|
||||
"editor.formatOnSave": false,
|
||||
"prettier.enable": false
|
||||
"prettier.enable": false,
|
||||
"debug.javascript.autoAttachSmartPattern": [
|
||||
"${workspaceFolder}/**",
|
||||
"!**/node_modules/**",
|
||||
"**/$KNOWN_TOOLS$/**",
|
||||
"**/start-server.js",
|
||||
"**/turbo/**"
|
||||
]
|
||||
}
|
||||
|
||||
@ -12,6 +12,10 @@ export function register() {
|
||||
instrumentations: [new PrismaInstrumentation()],
|
||||
});
|
||||
|
||||
if (getNextRuntime() === "nodejs") {
|
||||
process.title = "stack-backend (nextjs)";
|
||||
}
|
||||
|
||||
if (getNextRuntime() === "nodejs" || getNextRuntime() === "edge") {
|
||||
Sentry.init({
|
||||
...sentryBaseConfig,
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
import Provider, { Configuration } from 'oidc-provider';
|
||||
|
||||
// terminate this Node.js process if parent terminates
|
||||
process.on('disconnect', function() {
|
||||
console.log('parent exited; exiting too');
|
||||
process.exit();
|
||||
});
|
||||
|
||||
const port = Number.parseInt(process.env.PORT || "8114");
|
||||
|
||||
const mockedProviders = [
|
||||
|
||||
@ -443,9 +443,15 @@ importers:
|
||||
|
||||
apps/oauth-mock-server:
|
||||
dependencies:
|
||||
serve:
|
||||
specifier: ^14.2.4
|
||||
version: 14.2.4
|
||||
'@stackframe/stack-shared':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/stack-shared
|
||||
'@types/oidc-provider':
|
||||
specifier: ^8.5.1
|
||||
version: 8.5.1
|
||||
oidc-provider:
|
||||
specifier: ^8.5.1
|
||||
version: 8.5.1
|
||||
devDependencies:
|
||||
tsx:
|
||||
specifier: ^4.16.2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user