import { nextTestSetup, FileRef } from 'e2e-utils' import { join } from 'path' // x-ref: https://github.com/vercel/next.js/issues/45189 describe('edge render - custom _document with edge runtime', () => { const { next } = nextTestSetup({ files: { 'pages/index.js': new FileRef( join(__dirname, 'app', 'pages', 'index.js') ), 'next.config.js': new FileRef(join(__dirname, 'app', 'next.config.js')), 'pages/_document.js': ` import Document, { Html, Head, Main, NextScript } from 'next/document' export default class MyDocument extends Document { render() { return (