feat(business): wire BusinessIssue island to live PHP backend
Deploy Astro Frontend / deploy (push) Waiting to run
Deploy Astro Frontend / deploy (push) Waiting to run
Render the DB-driven BusinessIssue island on the Business page and let the Playwright config target a remote BASE_URL for live verification. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import { defineConfig, devices } from "@playwright/test";
|
||||
|
||||
const baseURL = process.env.BASE_URL ?? "http://localhost:4321";
|
||||
const isRemote = Boolean(process.env.BASE_URL);
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "./tests",
|
||||
timeout: 15_000,
|
||||
use: { baseURL: "http://localhost:4321" },
|
||||
webServer: {
|
||||
use: { baseURL },
|
||||
webServer: isRemote
|
||||
? undefined
|
||||
: {
|
||||
command: "npm run preview",
|
||||
url: "http://localhost:4321",
|
||||
reuseExistingServer: true,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import LocaleCopy from "../components/LocaleCopy.astro";
|
||||
import BusinessIssue from "../components/BusinessIssue.jsx";
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
|
||||
const copy = {
|
||||
@@ -38,5 +39,6 @@ const copy = {
|
||||
<a class="button button--dark" href="/articles/ai-bubble-2026/"><LocaleCopy copy={copy.cta} /></a>
|
||||
</article>
|
||||
</section>
|
||||
<BusinessIssue client:load />
|
||||
</main>
|
||||
</BaseLayout>
|
||||
|
||||
Reference in New Issue
Block a user