diff --git a/astro.config.mjs b/astro.config.mjs index 97ca0d9..6919479 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -21,7 +21,7 @@ export default defineConfig({ integrations: [swup({ theme: false, animationClass: "vh-animation-", - containers: [".vh-animation"], + containers: [".main-inner>.main-inner-content",'.vh-header>.main'], smoothScrolling: true, progress: true, cache: true, @@ -43,6 +43,6 @@ export default defineConfig({ syntaxHighlight: 'shiki', shikiConfig: { theme: 'github-light' }, }, - vite: { resolve: { alias: { "@": path.resolve(__dirname, "./src"), "@public": path.resolve(__dirname, "./public") } } }, + vite: { resolve: { alias: { "@": path.resolve(__dirname, "./src") } } }, server: { host: '0.0.0.0' } }); \ No newline at end of file diff --git a/package.json b/package.json index 87bcbe0..c6ed64c 100644 --- a/package.json +++ b/package.json @@ -12,18 +12,18 @@ "ondev": "astro preferences enable devToolbar" }, "dependencies": { - "@astrojs/mdx": "^4.2.1", + "@astrojs/mdx": "^4.2.3", "@astrojs/rss": "^4.0.11", "@astrojs/sitemap": "^3.3.0", "@swup/astro": "^1.5.0", "aplayer": "^1.10.1", - "astro": "^5.5.4", + "astro": "^5.5.6", "overlayscrollbars": "^2.11.1", "vanilla-lazyload": "^19.1.3", "vh-plugin": "^1.2.2" }, "devDependencies": { - "@playform/compress": "^0.1.7", + "@playform/compress": "^0.1.8", "@types/dplayer": "^1.25.5", "@types/nprogress": "^0.2.3", "@waline/client": "^3.5.6", diff --git a/tsconfig.json b/tsconfig.json index 7ffb72d..9625b95 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,10 +6,7 @@ "paths": { "@/*": [ "./src/*" - ], - "@public/*": [ - "./public/*" - ], + ] } }, "include": [ diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..8faa75a --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,7 @@ +{ + "name": "vh-astro", + "compatibility_date": "2025-03-31", + "assets": { + "directory": "./dist" + } +} \ No newline at end of file