Hi,
I want to deploy this SPA using Caddy2 server but cannot find any working Caddyfile example
sd2nnvve1#
the same question for me
jtoj6r0c2#
assuming you are using vue3 history mode and Caddy2 , try this:
vue3
Caddy2
yoursite.com { encode zstd gzip root * /opt/app/vue3_lesson_demo/dist # here is your vue build folder file_server }
refer to: http://siwei.me/blog/posts/linux-caddy-vue3-caddy2
demo: https://vue.test-pns-link.com/
2条答案
按热度按时间sd2nnvve1#
the same question for me
jtoj6r0c2#
assuming you are using
vue3
history mode andCaddy2
, try this:refer to: http://siwei.me/blog/posts/linux-caddy-vue3-caddy2
demo: https://vue.test-pns-link.com/