Skip to content
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

Support buildOutputPath for Next.js #11

Closed
khalil-omer opened this issue Feb 26, 2024 · 2 comments
Closed

Support buildOutputPath for Next.js #11

khalil-omer opened this issue Feb 26, 2024 · 2 comments

Comments

@khalil-omer
Copy link
Contributor

buildOutputPath is not supported for OpenNext in NextjsSite like it is in the CDK version of SST. I tried pointing path to where the .next output is expected, but that doesn't work b/c it expects to find Next source code it seems, or at least it checks the path before running the build command.

@khalil-omer
Copy link
Contributor Author

Update: this didn't end up being relevant for me, as I needed to provide my own build command, so I am able to use the actual OpenNext config. I'll leave this open as it would probably still help others.

@fwang
Copy link
Contributor

fwang commented Mar 15, 2024

Thanks @khalil-omer

Ion uses OpenNext v3. In v3, you can set buildOutputPath in your open-next.config.ts.

@fwang fwang closed this as completed Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants