From 71f6efe8dc8c2c047c3dcb6af8d8326fc5f64922 Mon Sep 17 00:00:00 2001 From: Mathias Date: Sun, 14 Aug 2022 22:00:17 +0200 Subject: [PATCH] Created an @ alias in the vite config --- client/vite.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/vite.config.js b/client/vite.config.js index 21146588..533794e5 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -1,10 +1,16 @@ import react from '@vitejs/plugin-react' +import path from "path"; export default { plugins: [react()], build: { outDir: 'build' }, + resolve: { + alias: { + '@': path.resolve(__dirname, './src'), + }, + }, server: { proxy: { "/api": "http://localhost:5216/"