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

How to build without next export (using getStaticPaths fallback: true) #28

Open
tomsoderlund opened this issue Oct 18, 2020 · 1 comment
Labels
question Further information is requested

Comments

@tomsoderlund
Copy link

tomsoderlund commented Oct 18, 2020

build is defined as "build": "next build && next export -o build" but it gives me the following build error:

Pages with `fallback` enabled in `getStaticPaths` can not be exported.
See more info here: https://err.sh/next.js/ssg-fallback-true-export

In a Next.js/React project I would just have:

"build": "next build"

but that gives this build error with Preact on Vercel:

Error: No Output Directory named "build" found after the Build completed.
You can configure the Output Directory in your Project Settings.
Learn More: https://vercel.link/missing-public-directory
@marvinhagemeister marvinhagemeister added the question Further information is requested label Oct 26, 2020
@marvinhagemeister
Copy link
Collaborator

This sounds like the output directory is misconfigured in the project settings on vercel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants