Api Platform distribution and vite vue3 project as pwa #2598
Unanswered
Damien-Lev
asked this question in
Q&A
Replies: 3 comments
-
Can you share more of your setup/files for the environment? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have you found a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Basically, you have to add the list of the paths you want the Vite server to serve to the For production usage, if you don't use SSR, you will also have to update the Caddy config to directly serve the static files generated by Vite instead of proxying to a Node server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, does anyone has ever used api platform project template with franken/caddy, and the pwa ?
When i copy this, i got a next project, i changed everything in pwa to have a vite+vue3 project exposing on 3000 like before, but i get 404 for everyfile. I suppose that my problem is in the "pwa expression" in caddy file, but i don't know at all what to change :(
@pwa expression
( header({'Accept': '*text/html*'}) && !path( '/docs*', '/graphql*', '/bundles*', '/contexts*', '/_profiler*', '/_wdt*', '*.json*', '*.html', '*.csv', '*.yml', '*.yaml', '*.xml' ) ) || path('/favicon.ico', '/manifest.json', '/robots.txt', '/_nuxt*', '/sitemap*')
Beta Was this translation helpful? Give feedback.
All reactions