change tactic
continuous-integration/drone/push Build is passing Details

master
37b7 3 weeks ago
parent 944f8c88c1
commit a2a22c618e

@ -4,67 +4,67 @@ import { withBasePath } from './basePath';
export const PATHS = { export const PATHS = {
IMAGES: { IMAGES: {
PROJECTS: { PROJECTS: {
TEMP: withBasePath('/assets/images/temp_project.png'), TEMP: withBasePath('assets/images/temp_project.png'),
PORTFOLIO: withBasePath('/assets/images/portfolionuxt_project.png'), PORTFOLIO: withBasePath('assets/images/portfolionuxt_project.png'),
IRIS: withBasePath('/assets/images/iris_project.png'), IRIS: withBasePath('assets/images/iris_project.png'),
CHROMINO: withBasePath('/assets/images/chromino_project.png'), CHROMINO: withBasePath('assets/images/chromino_project.png'),
CLAVIER: withBasePath('/assets/images/clavier_project.png'), CLAVIER: withBasePath('assets/images/clavier_project.png'),
FLOUFACE: withBasePath('/assets/images/flouface_project.png'), FLOUFACE: withBasePath('assets/images/flouface_project.png'),
MODELISATION: withBasePath('/assets/images/modelisation_project.png'), MODELISATION: withBasePath('assets/images/modelisation_project.png'),
SERVER: withBasePath('/assets/images/server_project.png') SERVER: withBasePath('assets/images/server_project.png')
}, },
GALLERY: { GALLERY: {
PORTFOLIO: [ PORTFOLIO: [
withBasePath('/assets/images/gallery/portfolio/portfolio_1.jpg'), withBasePath('assets/images/gallery/portfolio/portfolio_1.jpg'),
withBasePath('/assets/images/gallery/portfolio/portfolio_2.jpg'), withBasePath('assets/images/gallery/portfolio/portfolio_2.jpg'),
withBasePath('/assets/images/gallery/portfolio/portfolio_3.jpg') withBasePath('assets/images/gallery/portfolio/portfolio_3.jpg')
], ],
IRIS: [ IRIS: [
withBasePath('/assets/images/gallery/iris/iris_1.jpg'), withBasePath('assets/images/gallery/iris/iris_1.jpg'),
withBasePath('/assets/images/gallery/iris/iris_2.jpg') withBasePath('assets/images/gallery/iris/iris_2.jpg')
], ],
CHROMINO: [ CHROMINO: [
withBasePath('/assets/images/gallery/chromino/chromino_1.jpg'), withBasePath('assets/images/gallery/chromino/chromino_1.jpg'),
withBasePath('/assets/images/gallery/chromino/chromino_2.jpg') withBasePath('assets/images/gallery/chromino/chromino_2.jpg')
], ],
CLAVIER: [ CLAVIER: [
withBasePath('/assets/images/gallery/clavier/clavier_1.jpg'), withBasePath('assets/images/gallery/clavier/clavier_1.jpg'),
withBasePath('/assets/images/gallery/clavier/clavier_2.jpg') withBasePath('assets/images/gallery/clavier/clavier_2.jpg')
], ],
MODELISATION: [ MODELISATION: [
withBasePath('/assets/images/gallery/modelisation/modelisation_1.jpg'), withBasePath('assets/images/gallery/modelisation/modelisation_1.jpg'),
withBasePath('/assets/images/gallery/modelisation/modelisation_2.jpg') withBasePath('assets/images/gallery/modelisation/modelisation_2.jpg')
], ],
SERVER: [ SERVER: [
withBasePath('/assets/images/gallery/server/server_1.jpg'), withBasePath('assets/images/gallery/server/server_1.jpg'),
withBasePath('/assets/images/gallery/server/server_2.jpg') withBasePath('assets/images/gallery/server/server_2.jpg')
], ],
FLOUFACE: [ FLOUFACE: [
withBasePath('/assets/images/gallery/flouface/flouface_1.jpg'), withBasePath('assets/images/gallery/flouface/flouface_1.jpg'),
withBasePath('/assets/images/gallery/flouface/flouface_2.jpg') withBasePath('assets/images/gallery/flouface/flouface_2.jpg')
] ]
} }
}, },
ICONS: { ICONS: {
GITHUB: { GITHUB: {
LIGHT: withBasePath('/assets/icons/github-black.png'), LIGHT: withBasePath('assets/icons/github-black.png'),
DARK: withBasePath('/assets/icons/github-white.png') DARK: withBasePath('assets/icons/github-white.png')
} as Icons, } as Icons,
DEMO: { DEMO: {
LIGHT: withBasePath('/assets/icons/demo-black.png'), LIGHT: withBasePath('assets/icons/demo-black.png'),
DARK: withBasePath('/assets/icons/demo-white.png') DARK: withBasePath('assets/icons/demo-white.png')
} as Icons, } as Icons,
DOCUMENTATION: { DOCUMENTATION: {
LIGHT: withBasePath('/assets/icons/documentation-black.png'), LIGHT: withBasePath('assets/icons/documentation-black.png'),
DARK: withBasePath('/assets/icons/documentation-white.png') DARK: withBasePath('assets/icons/documentation-white.png')
} as Icons, } as Icons,
YOUTUBE: { YOUTUBE: {
LIGHT: withBasePath('/assets/icons/youtube-black.png'), LIGHT: withBasePath('assets/icons/youtube-black.png'),
DARK: withBasePath('/assets/icons/youtube-white.png') DARK: withBasePath('assets/icons/youtube-white.png')
} as Icons } as Icons
}, },
RESOURCES: { RESOURCES: {
CV: withBasePath('/assets/files/CV_final_Mathéo_Thierry.pdf') CV: withBasePath('assets/files/CV_final_Mathéo_Thierry.pdf')
}, },
LINKS: { LINKS: {
YOUTUBE: 'https://www.youtube.com/@37b7', YOUTUBE: 'https://www.youtube.com/@37b7',
@ -106,6 +106,6 @@ export const PATHS = {
} as const; } as const;
export const DEFAULT_IMAGES = { export const DEFAULT_IMAGES = {
PROJECT: withBasePath('/assets/images/default-project.png'), PROJECT: withBasePath('assets/images/default-project.png'),
ICON: withBasePath('/assets/icons/default-icon.png'), ICON: withBasePath('assets/icons/default-icon.png'),
} as const; } as const;

@ -1,17 +1,16 @@
// https://nuxt.com/docs/api/configuration/nuxt-config // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({ export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true }, devtools: { enabled: true },
css: [ css: [
'~/assets/css/theme.css', 'assets/css/theme.css',
'~/assets/css/common.css', 'assets/css/common.css',
'~/assets/css/header.css', 'assets/css/header.css',
'~/assets/css/footer.css', 'assets/css/footer.css',
'~/assets/css/pages/home.css', 'assets/css/pages/home.css',
'~/assets/css/pages/projects.css', 'assets/css/pages/projects.css',
'~/assets/css/pages/about.css', 'assets/css/pages/about.css',
'~/assets/css/pages/cv.css' 'assets/css/pages/cv.css'
], ],
app: { app: {
@ -31,23 +30,14 @@ export default defineNuxtConfig({
], ],
}, },
buildAssetsDir: '/_nuxt/', buildAssetsDir: '/_nuxt/',
}, cdnURL: process.env.NODE_ENV === 'production' ? 'https://codefirst.iut.uca.fr' : '',
routeRules: {
'/**': { ssr: true }
},
router: {
options: {
strict: false
}
}, },
modules: ['@nuxt/image'], modules: ['@nuxt/image'],
plugins: [ plugins: [
{ src: '~/plugins/router.ts', mode: 'client' }, { src: 'plugins/router.ts', mode: 'server' },
{ src: '~/plugins/theme.ts', mode: 'client' } { src: 'plugins/theme.ts', mode: 'client' }
], ],
image: { image: {
@ -71,12 +61,6 @@ export default defineNuxtConfig({
}, },
}, },
nitro: {
routeRules: {
'/**': { cors: true }
}
},
runtimeConfig: { runtimeConfig: {
public: { public: {
basePath: process.env.NODE_ENV === 'production' ? '/containers/matheothierry-portfolio_nuxt' : '/' basePath: process.env.NODE_ENV === 'production' ? '/containers/matheothierry-portfolio_nuxt' : '/'

@ -0,0 +1,31 @@
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']
}
}
}
}
})
Loading…
Cancel
Save