florian-lefebvre / astro-pages

Add custom file based routing directories in Astro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

astro-pages

Add custom file based routing directories in Astro

// astro.config.mjs
import { defineConfig } from 'astro/config';
import pages from 'astro-pages';

export default defineConfig({
  // Create 'page' directory at 'src/custom'
  integrations: [pages('custom')],
});

About

Add custom file based routing directories in Astro


Languages

Language:TypeScript 51.6%Language:Astro 44.9%Language:JavaScript 3.5%