You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
How can I use the cloudflare-pages template with
serverModuleFormat: "cjs"
?Template
https://github.com/remix-run/remix/tree/main/templates/cloudflare-pages
Steps to Reproduce
In
remix.config.js
:serverModuleFormat
tocjs
export default
tomodule.exports =
In
package.json
remove"type": "module"
In
tsconfig.json
:moduleResolution
tonode
module
toCommonJS
Run the server
Expected Behavior
When I click on the link, I can see the home page
Actual Behavior
When I click on a link I can't see the home page and get an error page not found
Сonsole
Beta Was this translation helpful? Give feedback.
All reactions