18 lines
406 B
TypeScript
18 lines
406 B
TypeScript
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import basicSsl from '@vitejs/plugin-basic-ssl';
|
|
|
|
// `basicSsl` generates a self-signed certificate so the dev server and
|
|
// `vite preview` both serve over HTTPS out of the box.
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
host: true,
|
|
port: 5173,
|
|
},
|
|
preview: {
|
|
host: true,
|
|
port: 4173,
|
|
},
|
|
});
|