-
Notifications
You must be signed in to change notification settings - Fork 276
Nextjs use spec #253
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
Nextjs use spec #253
Conversation
| await mkdir(opts.outputDirectoryBasePath); | ||
| const outputBundle: OutputBundleConfig = { | ||
| version: "v1", | ||
| serverConfig: { |
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.
How will the env var section be taken cared of here?
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.
It will be done the same way things are done in the angular adapter, we'll only add it if needed. For now we don't have any env var needs and env var is optional so there is no need to add a field for it yet
| const pathsToMove = await readdir(appDir); | ||
| for (const path of pathsToMove) { | ||
| const isOutputBundleDir = join(appDir, path) === outputBundleAppDir; | ||
| const isbundleYamlDir = join(appDir, path) === dirname(bundleYamlPath); |
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.
nit: isBundleYamlDir
| async function generateBundleYaml( | ||
| outputBundleOptions: OutputBundleOptions, | ||
| nextBuildDirectory: string, | ||
| opts: OutputBundleOptions, |
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.
optional nit: you can unpack this if you prefer
Use the new output bundle spec for nextjs.
Also copies assets into standalone directory instead of .apphosting