
+ src="../../public/images/loginpage/loginhutopy.png">
Connexion
Comment souhaitez-vous
diff --git a/src/views/main/ContactView.vue b/src/views/main/ContactView.vue
index 3108e71..381d407 100644
--- a/src/views/main/ContactView.vue
+++ b/src/views/main/ContactView.vue
@@ -8,7 +8,7 @@
-
+
@@ -27,7 +27,7 @@
-
+
diff --git a/src/views/main/CreatorFeed.vue b/src/views/main/CreatorFeed.vue
index 877fbe5..30deb38 100644
--- a/src/views/main/CreatorFeed.vue
+++ b/src/views/main/CreatorFeed.vue
@@ -1,8 +1,8 @@
-

+
diff --git a/src/views/main/CreatorFolio copy.vue b/src/views/main/CreatorFolio copy.vue
index 06fc8a3..b178e38 100644
--- a/src/views/main/CreatorFolio copy.vue
+++ b/src/views/main/CreatorFolio copy.vue
@@ -14,8 +14,8 @@
-
+
diff --git a/src/views/main/CreatorFolio.vue b/src/views/main/CreatorFolio.vue
index 1d28a9e..da891f4 100644
--- a/src/views/main/CreatorFolio.vue
+++ b/src/views/main/CreatorFolio.vue
@@ -246,17 +246,17 @@
-
-
+
-
+
-
+
diff --git a/src/views/main/HomeView.vue b/src/views/main/HomeView.vue
index 06e910f..dce5400 100644
--- a/src/views/main/HomeView.vue
+++ b/src/views/main/HomeView.vue
@@ -191,17 +191,17 @@
-
+
-
+
-
+
@@ -227,8 +227,8 @@
-

+
@@ -301,19 +301,19 @@
diff --git a/swa-cli.config.json b/swa-cli.config.json
new file mode 100644
index 0000000..a14b361
--- /dev/null
+++ b/swa-cli.config.json
@@ -0,0 +1,13 @@
+{
+ "$schema": "https://aka.ms/azure/static-web-apps-cli/schema",
+ "configurations": {
+ "taim-ui": {
+ "appLocation": ".",
+ "outputLocation": "dist",
+ "appBuildCommand": "npm run build",
+ "run": "npm run dev",
+ "appDevserverUrl": "https://hutopy.azurewebsites.net",
+ "apiDevserverUrl": "https://hutopy.azurewebsites.net"
+ }
+ }
+}
\ No newline at end of file
diff --git a/vite.config.js b/vite.config.js
index 5c45e1d..755350d 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,16 +1,24 @@
import { fileURLToPath, URL } from 'node:url'
-
-import { defineConfig } from 'vite'
+import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
+
// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [
- vue(),
- ],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
+export default defineConfig(({ mode }) => {
+ // Load environment variables based on the mode
+ const env = loadEnv(mode, process.cwd(), '')
+ return {
+ plugins: [
+ vue(),
+ ],
+ resolve: {
+ alias: {
+ '@': fileURLToPath(new URL('./src', import.meta.url))
+ }
+ },
+ define: {
+ // Define a global constant __APP_ENV__ based on loaded environment variables
+ VITE_API_URL: JSON.stringify(env.VITE_API_URL)
}
}
})