Trying to add CF Pages

This commit is contained in:
Ronnie 2024-11-20 19:40:21 -05:00
parent adf0d2766d
commit eb2e41be03
3 changed files with 13 additions and 1 deletions

View file

@ -1,7 +1,11 @@
import type { NextConfig } from "next";
import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev';
const nextConfig: NextConfig = {
/* config options here */
};
if (process.env.NODE_ENV === 'development') {
await setupDevPlatform();
}
export default nextConfig;