diff --git a/www/astro.config.mjs b/www/astro.config.mjs index 0751dcd327..ec2ff9c03e 100644 --- a/www/astro.config.mjs +++ b/www/astro.config.mjs @@ -3,11 +3,14 @@ export default { pages: './src/pages', dist: './dist', public: './public', + buildOptions: { + site: 'https://snowpack.dev/', + }, renderers: [ // When testing, we used this as a bit of a kitchen sink for Astro. // Keep the different mixing of frameworks just for fun, to show Astro off. '@astrojs/renderer-vue', '@astrojs/renderer-svelte', - '@astrojs/renderer-preact' - ] + '@astrojs/renderer-preact', + ], }; diff --git a/www/package.json b/www/package.json index 4e8869ab1b..09f768de1b 100644 --- a/www/package.json +++ b/www/package.json @@ -8,7 +8,7 @@ "copy": "node scripts/copy.js" }, "dependencies": { - "astro": "^0.12.5", + "astro": "~0.13.0", "date-fns": "^2.19.0", "docsearch.js": "^2.6.3" } diff --git a/www/src/components/Nav.astro b/www/src/components/Nav.astro index 0934b56d40..49da582ae4 100644 --- a/www/src/components/Nav.astro +++ b/www/src/components/Nav.astro @@ -1,5 +1,9 @@ --- -export let version: string = '3.5.6'; +// get snowpack version +export let version = '3.6.0'; +await fetch('https://registry.npmjs.org/snowpack/latest') + .then((res) => res.json()) + .then((manifest) => version = manifest.version); ---