Configuring Your Server
This is a member-only chapter. Log in with your Signal Over Noise membership email to continue.
Log in to readModule 4 · Section 8 of 9
Configuring Your Server
Once built, add it to settings.json. For a TypeScript server you can run with tsx during development:
"my-server": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/src/index.ts"]
}
For production (compiled), use node:
"my-server": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
For servers that need credentials:
"my-server": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"],
"env": {
"API_KEY": "your-key-here",
"API_URL": "https://api.example.com"
}
}