Live preview e2e tests had no CSS when tested against prod. For all our other tests, we have a separate test/app directory that imports CSS. Otherwise, the root-level /app directory is used. For live-preview, we currently always run against test/live-preview/app, that has no CSS import. This PR adds a new test/live-preview/prod/app directory that imports CSS and is used when we run tests against prod. In order for this to work, I had to make import map generation smarter
11 lines
461 B
TypeScript
11 lines
461 B
TypeScript
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
|
import config from '@payload-config'
|
|
import { REST_DELETE, REST_GET, REST_OPTIONS, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
|
|
|
|
export const GET = REST_GET(config)
|
|
export const POST = REST_POST(config)
|
|
export const DELETE = REST_DELETE(config)
|
|
export const PATCH = REST_PATCH(config)
|
|
export const OPTIONS = REST_OPTIONS(config)
|