oops
This commit is contained in:
@ -19,6 +19,7 @@ export default defineConfig({
|
|||||||
redirects: {
|
redirects: {
|
||||||
'/feed': '/rss.xml',
|
'/feed': '/rss.xml',
|
||||||
},
|
},
|
||||||
|
output: 'server',
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()]
|
plugins: [tailwindcss()]
|
||||||
},
|
},
|
||||||
|
@ -3,6 +3,8 @@ import { getCollection, type CollectionEntry } from 'astro:content';
|
|||||||
import { Icon } from 'astro-icon/components';
|
import { Icon } from 'astro-icon/components';
|
||||||
import Layout from '../../layouts/Layout.astro';
|
import Layout from '../../layouts/Layout.astro';
|
||||||
|
|
||||||
|
export const prerender = true;
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const posts = await getCollection('posts');
|
const posts = await getCollection('posts');
|
||||||
return posts.map((post: CollectionEntry<'posts'>) => ({
|
return posts.map((post: CollectionEntry<'posts'>) => ({
|
||||||
|
Reference in New Issue
Block a user