Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with $ vike preview (with warning) #41

Open
brillout opened this issue Jan 10, 2025 · 0 comments
Open

Integrate with $ vike preview (with warning) #41

brillout opened this issue Jan 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@brillout
Copy link
Member

I'd rather have users directly call $ node dist/server/index.mjs instead of hiding it behind a CLI.

That said, one thing we could do is to make $ vike preview call $ node dist/server/index.mjs while showing a warning:

[Vike][Warning] Call $ node dist/server/index.mjs instead of $ vike preview in production.

Ideally detecting whether the CLI was called with Bun/Deno/Node in order to print an accurate instruction in the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant