Comments (2)
Have you ran pnpm run build
beforehand? The "preview" wording comes from Vite, which is designed to run what's in your dist
folder.
If the preview script NODE_ENV=production tsx ./express-entry.ts would work, is it also suited to run in production
Yes and no, depends where you deploy it. If you deploy it on a server (as opposed to serverless), it should be ok.
In VPS this is "server:prod": "cross-env NODE_ENV=production npm run server", is there any advantage using the former?
I do not remember what preivous server
script did, but I think it was the same thing yes.
from bati.
Running pnpm run build
beforehand solves it, thanks a lot!
Just looked it up, it was node --loader ts-node/esm ./server/index.ts
. Found something here about ts-node vs. tsx.
from bati.
Related Issues (20)
- Install Pinia HOT 1
- Consider deno
- Smarter detection of imported dependency files HOT 1
- Question about react streaming HOT 11
- Website: show a message for features incompatible with stackblitz HOT 3
- Support modern yarn HOT 5
- Endpoints 404 with vercel HOT 2
- Could not resolve "vike-react/config" [plugin vike-esbuild] HOT 3
- Missing file "./server/vike-handler.ts" HOT 1
- Website down HOT 1
- Add Unocss HOT 1
- Always provide `headersOriginal`?
- Inconsistent `context`
- [Feature] Support vike-node
- cloudflare + drizzle not working by default HOT 1
- Hono + lucia-auth / luciaAuthCookieMiddleware is broken HOT 1
- BATI include-if-imported does not include file on import when used with /*# HOT 2
- eslint / Definition for rule '@typescript-eslint/no-unused-expressions' was not found. HOT 1
- `Try me in Stackblitz` button doesn't use selected package manager
- Any plans to add Preact as one of the UI frameworks?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bati.