Il repo resta al sito: app in radice, piattaforme nel loro repo
apps/sito passa in radice, apps/platforms si toglie: vive in gitea:Adriano/InsanityLab-platforms, con la storia del repo comune. I piani e le specifiche di Longevity e Campus lasciano docs/ e seguono le piattaforme. README e compose: deploy da /opt/docker/insanitylab/src; al primo deploy .env va spostato da apps/sito/.env alla radice. Refs #20 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: { include: ['tests/**/*.test.ts'] },
|
||||
resolve: {
|
||||
alias: [
|
||||
// src/middleware.ts importa da 'astro:middleware', un modulo virtuale che Astro
|
||||
// risolve solo dentro la propria pipeline vite (dev/build), non sotto vitest puro.
|
||||
// Stesso bersaglio che Astro stesso usa (node_modules/astro/dist/core/create-vite.js):
|
||||
// defineMiddleware è identità (fn => fn), sequence è reale. Senza questo alias il
|
||||
// middleware non è caricabile in isolamento e nessun test può importarlo davvero.
|
||||
{ find: 'astro:middleware', replacement: 'astro/virtual-modules/middleware.js' },
|
||||
],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user