Skip to content

Conversation

@benoitlahoz
Copy link

Description

This PR adds an apply option to the plugin that takes serve (the original) or build, so it can be used when building with vite.

mkcert({
  apply: 'build'
});

Additional context

The use case is for testing production environment locally when not using vite serve.

yarn build # Bundle server with vite
yarn start # NODE_ENV=production node ./dist/server/main.js

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant