Skip to content

Production deploy based on yarn static:build static files #236

Discussion options

You must be logged in to vote

Hi, @Rileran. After trying with a local apache server, I discovered that in the .htaccess example I should be using index.html instead of app.html, like below:
RewriteRule "^app/" "index.html" [QSA,L]

The yarn static:build won't generate any app.html file and Apache was rewriting the url to nowhere. Just fixed the file name and it worked as expected on Apache.

On render.com I just used the rewrite configuration below:

Source: /app/*
Destination: /index.html

Everything is working as expected.

Thanks

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mauricio-raio
Comment options

Comment options

You must be logged in to vote
1 reply
@Rileran
Comment options

Answer selected by mauricio-raio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants