Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define WP_ENVIRONMENT_TYPE: 'local' in playground #58

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ui/preview/Playground.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useEffect } from 'react';
import {
PlaygroundClient,

Check warning on line 3 in src/ui/preview/Playground.tsx

View workflow job for this annotation

GitHub Actions / lint

PlaygroundClient not found in '@wp-playground/client'
StartPlaygroundOptions,

Check warning on line 4 in src/ui/preview/Playground.tsx

View workflow job for this annotation

GitHub Actions / lint

StartPlaygroundOptions not found in '@wp-playground/client'
startPlaygroundWeb,
StepDefinition,

Check warning on line 6 in src/ui/preview/Playground.tsx

View workflow job for this annotation

GitHub Actions / lint

StepDefinition not found in '@wp-playground/client'
} from '@wp-playground/client';

const playgroundIframeId = 'playground';
Expand Down Expand Up @@ -67,6 +67,12 @@

function steps(): StepDefinition[] {
return [
{
step: 'defineWpConfigConsts',
consts: {
WP_ENVIRONMENT_TYPE: 'local',
},
},
{
step: 'login',
username: 'admin',
Expand Down
Loading