feat(business): wire BusinessIssue island to live PHP backend
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:
2026-06-05 06:49:12 +02:00
parent c5464aa0aa
commit c2975f9a89
2 changed files with 14 additions and 7 deletions
+12 -7
View File
@@ -1,15 +1,20 @@
import { defineConfig, devices } from "@playwright/test"; 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({ export default defineConfig({
testDir: "./tests", testDir: "./tests",
timeout: 15_000, timeout: 15_000,
use: { baseURL: "http://localhost:4321" }, use: { baseURL },
webServer: { webServer: isRemote
command: "npm run preview", ? undefined
url: "http://localhost:4321", : {
reuseExistingServer: true, command: "npm run preview",
timeout: 30_000, url: "http://localhost:4321",
}, reuseExistingServer: true,
timeout: 30_000,
},
projects: [ projects: [
{ name: "desktop", use: { ...devices["Desktop Chrome"] } }, { name: "desktop", use: { ...devices["Desktop Chrome"] } },
{ name: "mobile", use: { ...devices["Pixel 5"] } }, { name: "mobile", use: { ...devices["Pixel 5"] } },
+2
View File
@@ -1,5 +1,6 @@
--- ---
import LocaleCopy from "../components/LocaleCopy.astro"; import LocaleCopy from "../components/LocaleCopy.astro";
import BusinessIssue from "../components/BusinessIssue.jsx";
import BaseLayout from "../layouts/BaseLayout.astro"; import BaseLayout from "../layouts/BaseLayout.astro";
const copy = { const copy = {
@@ -38,5 +39,6 @@ const copy = {
<a class="button button--dark" href="/articles/ai-bubble-2026/"><LocaleCopy copy={copy.cta} /></a> <a class="button button--dark" href="/articles/ai-bubble-2026/"><LocaleCopy copy={copy.cta} /></a>
</article> </article>
</section> </section>
<BusinessIssue client:load />
</main> </main>
</BaseLayout> </BaseLayout>