From 3d5cb7e11a1072833b79b4fb809253f4efcdb54f Mon Sep 17 00:00:00 2001 From: 37b7 Date: Tue, 20 May 2025 09:21:00 +0200 Subject: [PATCH] last --- .drone.yml | 1 - docker/Dockerfile | 4 ++-- vite.config.js | 31 ------------------------------- 3 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 vite.config.js diff --git a/.drone.yml b/.drone.yml index 08a5229..7c9cc33 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,6 @@ steps: context: . environment: - NODE_ENV=production - - BASE_PATH=/containers/matheothierry-portfolio_nuxt registry: hub.codefirst.iut.uca.fr mirror: https://proxy.iut.uca.fr:8443 repo: hub.codefirst.iut.uca.fr/matheo.thierry/portfolio_nuxt diff --git a/docker/Dockerfile b/docker/Dockerfile index 2c6644a..b4fc5bf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,8 +13,8 @@ COPY --from=builder /app/public ./public COPY --from=builder /app/.nuxt ./.nuxt RUN npm install --production ENV NODE_ENV=production -ENV BASE_PATH=/containers/matheothierry-portfolio_nuxt/ -ENV CDN_URL=https://codefirst.iut.uca.fr/matheothierry-portfolio_nuxt/ +ENV BASE_PATH=/ +ENV CDN_URL=https://codefirst.iut.uca.fr ENV HOST=0.0.0.0 ENV PORT=3000 diff --git a/vite.config.js b/vite.config.js deleted file mode 100644 index 5383088..0000000 --- a/vite.config.js +++ /dev/null @@ -1,31 +0,0 @@ -import { defineConfig } from 'vite' -import { fileURLToPath } from 'url' -import { dirname, resolve } from 'path' - -const __filename = fileURLToPath(import.meta.url) -const __dirname = dirname(__filename) - -// https://vitejs.dev/config/ -export default defineConfig({ - base: process.env.NODE_ENV === 'production' ? '/containers/matheothierry-portfolio_nuxt/' : '/', - resolve: { - alias: { - '@': resolve(__dirname, './'), - '~': resolve(__dirname, './') - } - }, - server: { - host: '0.0.0.0', - port: 3000 - }, - build: { - assetsDir: '_nuxt', - rollupOptions: { - output: { - manualChunks: { - 'vendor': ['vue', 'vue-router'] - } - } - } - } -})