blob: f62be3cf78dcae6e6cd884e1a0c4844d0344babd [file] [log] [blame]
simon26e79f72022-10-05 22:16:08 -04001/*
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public
15 * License along with this program. If not, see
16 * <https://www.gnu.org/licenses/>.
17 */
simond8ca2f22022-10-11 23:30:55 -040018import react from '@vitejs/plugin-react';
19import { defineConfig } from 'vite';
20import svgrPlugin from 'vite-plugin-svgr';
simon7a7b4d52022-09-23 02:09:42 -040021
simond8ca2f22022-10-11 23:30:55 -040022export default defineConfig({
23 server: {
24 host: '0.0.0.0',
25 port: 3000,
26 proxy: {
Michelle Sepkap Simeb3dd3122022-11-03 02:12:39 -040027 '^/(api)|^/(auth)|^/(setup)': {
simond8ca2f22022-10-11 23:30:55 -040028 target: 'http://localhost:3001',
29 secure: false,
30 },
31 },
32 },
33 preview: {
34 port: 8080,
35 },
36 define: {
37 global: {},
38 },
39 plugins: [react(), svgrPlugin()],
40});