Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Jun 8, 2024
1 parent 03bcb27 commit 0eba30c
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion packages/integrations/node/src/env.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/integrations/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ export default function createIntegration(userOptions: UserOptions): AstroIntegr
ssr: {
noExternal: ['@astrojs/node'],
},
build: {
rollupOptions: {
external: ['astro:env/setup'],
},
},
},
});
},
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/node/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Options } from './types.js';

// Won't throw if the virtual module is not available because it's not supported in
// the users's astro version or if astro:env is not enabled in the project
await import('astro:env/setup')
await import('astro/env/setup')
.then((mod) => mod.setGetEnv((key) => process.env[key]))
.catch(() => {});

Expand Down
5 changes: 0 additions & 5 deletions packages/integrations/vercel/src/serverless/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,6 @@ export default function vercelServerless({
ssr: {
external: ['@vercel/nft'],
},
build: {
rollupOptions: {
external: ['astro:env/setup'],
},
},
},
...getAstroImageConfig(
imageService,
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/vercel/src/serverless/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

// Won't throw if the virtual module is not available because it's not supported in
// the users's astro version or if astro:env is not enabled in the project
await import('astro:env/setup')
await import('astro/env/setup')
.then((mod) => mod.setGetEnv((key) => process.env[key]))
.catch(() => {});

Expand Down
2 changes: 0 additions & 2 deletions packages/integrations/vercel/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="astro/client" />

import type { AnalyticsProps } from '@vercel/analytics';

export type VercelWebAnalyticsBeforeSend = AnalyticsProps['beforeSend'];

0 comments on commit 0eba30c

Please sign in to comment.