Skip to content

[ Chore ] Move server to .ts #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| ------- | ------------------ |
| 1.0.x | :white_check_mark: |

## Reporting a Vulnerability

In case of a vulnerability please reach out to active maintainers of the project and report it to them.
In case of a vulnerability please reach out to active maintainers of the project and report it to them.
19 changes: 19 additions & 0 deletions dev-server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Implementation based on github.com/epicweb-dev/epic-stack
*/
import { execa } from 'execa'

if (process.env.NODE_ENV === 'production') {
await import('./server')
} else {
const command =
'tsx watch --clear-screen=false --ignore ".cache/**" --ignore "app/**" --ignore "vite.config.ts.timestamp-*" --ignore "build/**" --ignore "node_modules/**" --inspect ./server'
execa(command, {
stdio: ['ignore', 'inherit', 'inherit'],
shell: true,
env: {
...process.env,
},
windowsHide: false,
})
}
Loading