Skip to content

Commit

Permalink
Merge pull request #3940 from pvhuwung/patch-1
Browse files Browse the repository at this point in the history
Updated Convert an SSR App to SSG
  • Loading branch information
mauerbac committed Jun 26, 2024
2 parents b73d554 + 1f41a9b commit f19291f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ frontend:
...
```

3. Update the build command in your package.json to use `next export`, then commit this to trigger a new non SSR build.
3. Update the build command in your `next.config.js` to add `output: 'export'` inside the `nextConfig` (`v14.0.0` **next export** has been **removed** in favor of **"output": "export"**), then commit this to trigger a new non SSR build.

4. Finally, go to the `Rewrites and redirects` tab in the Amplify Hosting, and delete the first rewrite rule that was re-writing to your SSR CloudFront Distribution.

Expand Down

0 comments on commit f19291f

Please sign in to comment.