Adds almost complete use of ESP32-sveltekit template

This commit is contained in:
Rune Harlyk
2024-03-29 01:40:08 +01:00
committed by Rune Harlyk
parent 290f678253
commit cde36ffda5
82 changed files with 7170 additions and 212 deletions
+18 -1
View File
@@ -1,5 +1,5 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
import { defineConfig } from 'vite';
import Icons from 'unplugin-icons/vite';
import viteLittleFS from './vite-plugin-littlefs';
@@ -13,5 +13,22 @@ export default defineConfig({
],
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
},
server: {
proxy: {
'/rest': {
target: 'http://192.168.0.130',
changeOrigin: true
},
'/events': {
target: 'http://192.168.0.130',
changeOrigin: true
},
'/ws': {
target: 'ws://192.168.0.130',
changeOrigin: true,
ws: true
}
}
}
});