yeetsquad747
yeetsquad747

Reputation: 41

Is using npm run preview for a svelte kit app after building it ok for production

I have a svelte kit app that uses the auto adapter. Is building it and then using npm run preview okay or is npm run preview just for testing out the build. I'd prefer self hosting if possible.

Upvotes: 4

Views: 648

Answers (1)

Dana Woodman
Dana Woodman

Reputation: 4542

No, vite preview, as stated here is not for production use.

Instead, use some other approach to serve your application (will depend on application type/adapter).

Upvotes: 0

Related Questions