First generate a production build:
just build
Then execute the vite preview
server:
just preview
This command uses under the hood the vite preview
command. For more information refer to Deploying a Static Site documentation where vite preview
is explained.