diff --git a/packages/playground/website-deployment/custom-redirects-lib.php b/packages/playground/website-deployment/custom-redirects-lib.php index 58765e3fae..282d241e95 100644 --- a/packages/playground/website-deployment/custom-redirects-lib.php +++ b/packages/playground/website-deployment/custom-redirects-lib.php @@ -201,16 +201,6 @@ function playground_maybe_redirect( $requested_path ) { ); } - if ( - 1 === preg_match( '#^/puzzle/[^/]+/?$#', $requested_path ) && - ! str_ends_with( $requested_path, '/index.html' ) - ) { - return array( - 'internal' => true, - 'location' => '/puzzle/index.html', - ); - } - return false; } diff --git a/packages/playground/website/vite.config.ts b/packages/playground/website/vite.config.ts index 564dc9f0ad..3be04cafef 100644 --- a/packages/playground/website/vite.config.ts +++ b/packages/playground/website/vite.config.ts @@ -16,7 +16,7 @@ import { // eslint-disable-next-line @nx/enforce-module-boundaries import { oAuthMiddleware } from './vite.oauth'; import { fileURLToPath } from 'node:url'; -import { copyFileSync, existsSync, cpSync } from 'node:fs'; +import { copyFileSync, existsSync } from 'node:fs'; import { join } from 'node:path'; import { buildVersionPlugin } from '../../vite-extensions/vite-build-version'; @@ -117,23 +117,6 @@ export default defineConfig(({ command, mode }) => { } }, } as Plugin, - /** - * Copy the Puzzle app form the `dist/packages/playground/puzzle` directory. - */ - { - name: 'puzzle-plugin', - apply: 'build', - writeBundle({ dir: outputDir }) { - const puzzleDir = path( - '../../../dist/packages/playground/puzzle/' - ); - if (existsSync(puzzleDir) && outputDir) { - cpSync(puzzleDir, join(outputDir, 'puzzle'), { - recursive: true, - }); - } - }, - } as Plugin, /** * Copy the `manifest.json` file to the `dist/` directory. */