feat: add Astro reference site and organize book contents
Reference site / build (push) Canceled after 0s

This commit is contained in:
2026-10-09 23:40:37 +09:00
parent 6086f3c5ef
commit 01c9498e6d
39 changed files with 7772 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import './plugins/environment.mjs';
import { defineConfig } from '@playwright/test';
const base = process.env.SITE_BASE?.replace(/\/$/, '') || '';
export default defineConfig({
testDir: './tests/browser',
use: {
baseURL: `http://127.0.0.1:4321${base}/`,
javaScriptEnabled: false,
launchOptions: { executablePath: process.env.CHROME_PATH },
},
projects: [
{ name: 'desktop', use: { viewport: { width: 1440, height: 1000 } } },
{ name: 'mobile', use: { viewport: { width: 390, height: 844 } } },
],
webServer: {
command: 'npm run preview -- --host 127.0.0.1 --port 4321',
url: `http://127.0.0.1:4321${base}/`,
reuseExistingServer: false,
},
});