mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 02:40:43 -06:00
32 lines
674 B
JavaScript
32 lines
674 B
JavaScript
|
import { defineConfig } from 'vite';
|
||
|
import laravel from 'laravel-vite-plugin';
|
||
|
|
||
|
|
||
|
import fs from 'fs';
|
||
|
|
||
|
|
||
|
const host = 'firefly.sd.local';
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
laravel({
|
||
|
input: ['resources/css/app.css', 'resources/js/app.js'],
|
||
|
refresh: true,
|
||
|
|
||
|
}),
|
||
|
],
|
||
|
|
||
|
|
||
|
server: {
|
||
|
usePolling: true,
|
||
|
allowedHosts: '*.sd.local',
|
||
|
host: '0.0.0.0',
|
||
|
hmr: { host },
|
||
|
cors: true,
|
||
|
https: {
|
||
|
key: fs.readFileSync(`/vagrant/tls-certificates/wildcard.sd.local.key`),
|
||
|
cert: fs.readFileSync(`/vagrant/tls-certificates/wildcard.sd.local.crt`),
|
||
|
},
|
||
|
},
|
||
|
});
|