File tree Expand file tree Collapse file tree 3 files changed +161
-160
lines changed
packages/integrations/cloudflare Expand file tree Collapse file tree 3 files changed +161
-160
lines changed Original file line number Diff line number Diff line change 4444 "@astrojs/internal-helpers" : " workspace:*" ,
4545 "@astrojs/underscore-redirects" : " workspace:*" ,
4646 "@cloudflare/vite-plugin" : " ^1.23.0" ,
47- "dotenv" : " ^17.2.3" ,
4847 "piccolore" : " ^0.1.3" ,
4948 "tinyglobby" : " ^0.2.15" ,
5049 "vite" : " ^7.3.1"
5554 },
5655 "devDependencies" : {
5756 "@cloudflare/workers-types" : " ^4.20260131.0" ,
57+ "@types/node" : " ^25.2.2" ,
5858 "astro" : " workspace:*" ,
5959 "astro-scripts" : " workspace:*" ,
6060 "cheerio" : " 1.2.0" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
1919 DEFAULT_SESSION_KV_BINDING_NAME ,
2020 DEFAULT_IMAGES_BINDING_NAME ,
2121} from './wrangler.js' ;
22- import { parse } from 'dotenv ' ;
22+ import { parseEnv } from 'node:util ' ;
2323import { sessionDrivers } from 'astro/config' ;
2424import { createCloudflarePrerenderer } from './prerenderer.js' ;
2525
@@ -270,7 +270,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
270270 if ( existsSync ( devVarsPath ) ) {
271271 try {
272272 const data = readFileSync ( devVarsPath , 'utf-8' ) ;
273- const parsed = parse ( data ) ;
273+ const parsed = parseEnv ( data ) ;
274274 Object . assign ( process . env , parsed ) ;
275275 } catch {
276276 logger . error (
You can’t perform that action at this time.
0 commit comments