-
Notifications
You must be signed in to change notification settings - Fork 89
feat: Use none
bundler for SSR Routes
#2084
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
Changes from 8 commits
a8aa12e
74f38d3
a22074d
e2a3155
3beb5cb
41cb5b4
f46e142
6d3668c
577630f
fc9480c
4466347
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,6 +206,8 @@ export const getHandler = ({ | |
throw new Error('Could not find Next.js server') | ||
} | ||
|
||
process.env.NODE_ENV = 'production'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for this? Just wondering because this will also be the case when running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're filtering out https://github.com/netlify/next-runtime/blob/main/packages/runtime/src/helpers/functions.ts#L274 (This needs to be done manually for whatever reason) react-dom is an example for where this helps: https://www.npmjs.com/package/react-dom?activeTab=code By setting
AFAIK, we're directly proxying There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I see. Thanks, that makes sense. And yes, you're absolutely right about proxying |
||
|
||
const { Server } = require("http"); | ||
const { promises } = require("fs"); | ||
// We copy the file here rather than requiring from the node module | ||
|
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.
Note to self: We should probably make
splitApiRoute
another activation guard for this.