| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- import tailwindcss from '@tailwindcss/vite'
- import svgLoader from 'vite-svg-loader'
- // https://nuxt.com/docs/api/configuration/nuxt-config
- export default defineNuxtConfig({
- modules: [
- '@nuxt/eslint',
- '@vant/nuxt',
- '@pinia/nuxt',
- '@nuxt/fonts',
- '@nuxt/image',
- '@nuxtjs/i18n',
- '@vueuse/nuxt',
- '@sentry/nuxt/module',
- ],
- devtools: { enabled: true },
- css: ['~/assets/css/main.css'],
- runtimeConfig: {
- public: {
- env: process.env.NUXT_PUBLIC_ENV,
- apiBase: process.env.NUXT_PUBLIC_API_BASE,
- apiIdentity: process.env.NUXT_PUBLIC_API_IDENTITY,
- googleClientId: process.env.NUXT_PUBLIC_GOOGLE_CLIENT_ID,
- imAppId: process.env.NUXT_PUBLIC_IM_APPID,
- },
- serverApiBase: process.env.NUXT_SERVER_API_BASE,
- serverImSecret: process.env.NUXT_SERVER_IM_SECRET,
- },
- sourcemap: {
- client: 'hidden',
- },
- compatibilityDate: '2025-07-15',
- vite: {
- plugins: [
- tailwindcss(),
- svgLoader({
- svgoConfig: {
- multipass: true,
- plugins: [
- {
- name: 'preset-default',
- params: {
- overrides: {
- removeViewBox: false,
- },
- },
- },
- ],
- },
- }),
- ],
- css: {
- preprocessorOptions: {
- scss: {
- additionalData: `
- @use "~/assets/css/mixins.scss" as *;
- `,
- },
- },
- },
- },
- debug: false,
- eslint: {
- config: {
- stylistic: true,
- },
- },
- fonts: {
- defaults: {
- weights: ['400 600'],
- },
- },
- i18n: {
- defaultLocale: 'en',
- strategy: 'no_prefix',
- langDir: 'locales',
- locales: [
- { code: 'en', name: 'English', file: 'en.json' },
- { code: 'id', name: 'Bahasa Indonesia', file: 'id.json' },
- { code: 'zh', name: '简体中文', file: 'zh.json' },
- ],
- },
- sentry: {
- enabled: process.env.NUXT_PUBLIC_ENV === 'production',
- org: 'gamivip',
- project: 'javascript-nuxt',
- autoInjectServerSentry: 'top-level-import',
- },
- })
|