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
9 lines
315 B
TypeScript
9 lines
315 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 { GRAPHQL_POST, REST_OPTIONS } from '@payloadcms/next/routes'
|
|
|
|
export const POST = GRAPHQL_POST(config)
|
|
|
|
export const OPTIONS = REST_OPTIONS(config)
|