-
Notifications
You must be signed in to change notification settings - Fork 234
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
feat: enable v2_dev
flag
#196
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, looks like typechecking is failing on top-level await
in server.ts
package.json
Outdated
@@ -6,10 +6,8 @@ | |||
"build": "run-s build:*", | |||
"build:remix": "remix build", | |||
"build:server": "esbuild --platform=node --format=cjs ./server.ts --outdir=build --bundle", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pcattori Do we still need to build the server like this?
I guess we mainly did it to be used in the dev
script 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still needed as this repo authors the custom server in TS and does not use remix.config.js
's server
field to compile the custom server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pcattori Should we use remix.config.js
instead?
server.ts
Outdated
|
||
const BUILD_PATH = path.join(process.cwd(), "build", "index.js"); | ||
/** @type { import('@remix-run/node').ServerBuild | Promise<import('@remix-run/node').ServerBuild> } */ | ||
let build = await import(BUILD_PATH); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Top level await is failing with following TS error
@pcattori Not sure what the right way would be as we're still officially supporting Node 14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for now I just wrapped this in a async function run() {...}
b74d156
to
88d8d8f
Compare
88d8d8f
to
db89938
Compare
db89938
to
d68458b
Compare
No description provided.