move content outside this submodule

This commit is contained in:
Davide Scaini
2026-05-04 12:05:34 +02:00
parent d144a36fcd
commit 519e74de96
17 changed files with 35 additions and 660 deletions
+7 -2
View File
@@ -44,9 +44,11 @@ function contentDeleteWatcher() {
'astro:server:setup': ({ server }) => {
const siteRoot = new URL('.', import.meta.url).pathname;
const dataStore = fileURLToPath(new URL('.astro/data-store.json', import.meta.url));
const pagesRoot = fileURLToPath(new URL('../pages/', import.meta.url));
const blogRoot = fileURLToPath(new URL('../blog/', import.meta.url));
const watched = [
siteRoot + 'src/content/entries/',
siteRoot + 'src/content/blog/',
pagesRoot,
blogRoot,
];
if (_unlinkHandler) server.watcher.off('unlink', _unlinkHandler);
let restarting = false;
@@ -70,6 +72,9 @@ export default defineConfig({
markdown: { remarkPlugins },
vite: {
server: {
fs: {
allow: ['..'],
},
proxy: {
'/api': 'http://localhost:8001',
'/pages': 'http://localhost:8001',