|
@@ -1,16 +1,11 @@
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
|
import { defineConfig } from 'vite';
|
|
import { defineConfig } from 'vite';
|
|
|
-import fs from 'fs';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
|
plugins: [sveltekit()],
|
|
plugins: [sveltekit()],
|
|
|
server: {
|
|
server: {
|
|
|
host: true,
|
|
host: true,
|
|
|
port: 5173,
|
|
port: 5173,
|
|
|
- https: {
|
|
|
|
|
- key: fs.readFileSync('/etc/letsencrypt/live/mixtech.dev.br-0001/privkey.pem'),
|
|
|
|
|
- cert: fs.readFileSync('/etc/letsencrypt/live/mixtech.dev.br-0001/fullchain.pem')
|
|
|
|
|
- },
|
|
|
|
|
allowedHosts: [
|
|
allowedHosts: [
|
|
|
'10.80.146.81',
|
|
'10.80.146.81',
|
|
|
'counter.mixtech.dev.br'
|
|
'counter.mixtech.dev.br'
|
|
@@ -18,7 +13,7 @@ export default defineConfig({
|
|
|
hmr: {
|
|
hmr: {
|
|
|
host: 'counter.mixtech.dev.br',
|
|
host: 'counter.mixtech.dev.br',
|
|
|
protocol: 'wss',
|
|
protocol: 'wss',
|
|
|
- port: 5173
|
|
|
|
|
|
|
+ clientPort: 443
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|