Skip to content

How do I serve a Vite app? #3707

Discussion options

You must be logged in to vote

I figured out a problem. I assumed I needed to cd from main.rs but it's actually from the src folder for the server.

This:

actix_files::Files::new("/", "../../dist")

needs to be this:

actix_files::Files::new("/", "../dist")

I'm viewing my site now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Android789515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant