Skip to content

Commit

Permalink
Update vercel imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jan 7, 2025
1 parent 2458303 commit 2bfc8f1
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/vercel/test/fixtures/basic/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/test/fixtures/image/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/static';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';
import { testImageService } from '../../test-image-service.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/test/fixtures/isr/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from "@astrojs/vercel/serverless";
import vercel from "@astrojs/vercel";
import {defineConfig} from "astro/config";

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from "@astrojs/vercel/serverless";
import vercel from "@astrojs/vercel";
import {defineConfig} from "astro/config";

export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/test/fixtures/no-output/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/test/fixtures/redirects/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/static';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/test/fixtures/static/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/static';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion packages/vercel/test/fixtures/streaming/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/static';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import vercel from '@astrojs/vercel/serverless';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';

// https://astro.build/config
Expand Down
8 changes: 4 additions & 4 deletions packages/vercel/test/static-assets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ describe('Static Assets', () => {

describe('static adapter', () => {
it('has cache control', async () => {
const { default: vercel } = await import('@astrojs/vercel/static');
const { default: vercel } = await import('@astrojs/vercel');
await build({ adapter: vercel() });
await checkValidCacheControl();
});

it('has cache control other assets', async () => {
const { default: vercel } = await import('@astrojs/vercel/static');
const { default: vercel } = await import('@astrojs/vercel');
const assets = '_foo';
await build({ adapter: vercel(), assets });
await checkValidCacheControl(assets);
Expand All @@ -57,13 +57,13 @@ describe('Static Assets', () => {

describe('serverless adapter', () => {
it('has cache control', async () => {
const { default: vercel } = await import('@astrojs/vercel/serverless');
const { default: vercel } = await import('@astrojs/vercel');
await build({ output: 'server', adapter: vercel() });
await checkValidCacheControl();
});

it('has cache control other assets', async () => {
const { default: vercel } = await import('@astrojs/vercel/serverless');
const { default: vercel } = await import('@astrojs/vercel');
const assets = '_foo';
await build({ output: 'server', adapter: vercel(), assets });
await checkValidCacheControl(assets);
Expand Down

0 comments on commit 2bfc8f1

Please sign in to comment.