Fixes: 1) Replace usage of `vue-router` with `window.location.href` for redirects across multiple composables; 2) Ensure proper locale switching in authentication flows; Extra: 1) Update `package-lock.json` with dependencies for Apollo, Vue I18n, and styling; 2) Remove unused `i18n.config.js` to streamline i18n setup; 3) General composables refactoring to improve code maintainability;
42 lines
No EOL
1.2 KiB
JavaScript
42 lines
No EOL
1.2 KiB
JavaScript
import node from '@astrojs/node';
|
|
import { defineConfig } from 'astro/config';
|
|
import vue from '@astrojs/vue';
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
integrations: [
|
|
vue({
|
|
appEntrypoint: '/src/plugins/index.js',
|
|
devtools: { launchEditor: "webstorm" }
|
|
})
|
|
],
|
|
output: 'server',
|
|
adapter: node({
|
|
mode: 'standalone'
|
|
}),
|
|
vite: {
|
|
envDir: '../',
|
|
envPrefix: 'EVIBES_',
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'@core': fileURLToPath(new URL('./src/core', import.meta.url)),
|
|
'@graphql': fileURLToPath(new URL('./src/graphql', import.meta.url)),
|
|
'@styles': fileURLToPath(new URL('./src/assets/styles', import.meta.url)),
|
|
'@icons': fileURLToPath(new URL('./src/assets/icons', import.meta.url)),
|
|
'@images': fileURLToPath(new URL('./src/assets/images', import.meta.url)),
|
|
}
|
|
},
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
additionalData: `
|
|
@use "@/assets/styles/global/variables.scss" as *;
|
|
@use "@/assets/styles/global/mixins.scss" as *;
|
|
`
|
|
}
|
|
}
|
|
},
|
|
}
|
|
}); |