chore: add version.json

This commit is contained in:
AnotiaWang
2025-02-15 09:37:43 +08:00
parent c9cf611cd6
commit 0288396b71
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,10 @@ export default defineNuxtConfig({
'@nuxtjs/i18n', '@nuxtjs/i18n',
], ],
routeRules: {
'/version.json': { cors: true },
},
i18n: { i18n: {
vueI18n: './i18n.config.ts', vueI18n: './i18n.config.ts',
strategy: 'no_prefix', strategy: 'no_prefix',

3
public/version.json Normal file
View File

@ -0,0 +1,3 @@
{
"version": "1.0.0"
}