From 0288396b712e5acebe8e14482f13124f6b5a610e Mon Sep 17 00:00:00 2001 From: AnotiaWang Date: Sat, 15 Feb 2025 09:37:43 +0800 Subject: [PATCH] chore: add `version.json` --- nuxt.config.ts | 4 ++++ public/version.json | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 public/version.json diff --git a/nuxt.config.ts b/nuxt.config.ts index cb9f56a..f9d347a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -8,6 +8,10 @@ export default defineNuxtConfig({ '@nuxtjs/i18n', ], + routeRules: { + '/version.json': { cors: true }, + }, + i18n: { vueI18n: './i18n.config.ts', strategy: 'no_prefix', diff --git a/public/version.json b/public/version.json new file mode 100644 index 0000000..688e939 --- /dev/null +++ b/public/version.json @@ -0,0 +1,3 @@ +{ + "version": "1.0.0" +} \ No newline at end of file