Skip to content

Commit

Permalink
chore: add prod dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
jer3m01 committed Feb 23, 2024
1 parent 95ddc81 commit 74a9c72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/docs/package.json
Expand Up @@ -26,6 +26,7 @@
"type": "module",
"scripts": {
"build": "NODE_OPTIONS=\"--max-old-space-size=8192\" vinxi build",
"build:dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" DEVELOPMENT=1 vinxi build",
"clean": "rm -rf .solid && rm -rf netlify && rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"dev": "vinxi dev --host",
"start": "vinxi start"
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/vite.config.ts
Expand Up @@ -105,7 +105,7 @@ function rehypeCollectHeadings() {
export default defineConfig({
start: {
server: {
preset: process.env.GITHUB_ACTIONS ? "node" : "netlify",
preset: (process.env.GITHUB_ACTIONS || process.env.DEVELOPMENT) ? "node-server" : "netlify",
experimental: {
asyncContext: true,
},
Expand Down

0 comments on commit 74a9c72

Please sign in to comment.