Skip to content

Commit

Permalink
fix(render): redirect to 200.html for prerender (#9122)
Browse files Browse the repository at this point in the history
@thedavidprice and I were seeing problems in deploy target CI related to
CDNs using prerender. Netlify already has this 200.html file for
prerender; using it render led to similar success. Original PR on
200.html for context:
[https://github.com/redwoodjs/redwood/pull/4782](https://github.com/redwoodjs/redwood/pull/4782)
  • Loading branch information
jtoar authored Sep 1, 2023
1 parent ed8a87d commit c3f045c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/setup/deploy/templates/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
destination: replace_with_api_url/*
- type: rewrite
source: /*
destination: /index.html
destination: /200.html
- name: ${PROJECT_NAME}-api
type: web
Expand Down

0 comments on commit c3f045c

Please sign in to comment.