Skip to content

Commit

Permalink
fix: add external ssr lib
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu committed Apr 14, 2024
1 parent d94c3ff commit a79ec56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import react from "@astrojs/react";
import partytown from "@astrojs/partytown";
import cloudflare from "@astrojs/cloudflare";
import million from "million/compiler";
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import react from '@astrojs/react';
import partytown from '@astrojs/partytown';
import cloudflare from '@astrojs/cloudflare';
import million from 'million/compiler';

export default defineConfig({
site: "https://biancafiore.me",
vite: {
ssr: {
external: ["firebase-admin"],
},
build: {
external: ["firebase-admin"],
},
},
integrations: [
mdx(),
Expand Down
2 changes: 1 addition & 1 deletion src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ImageMetadata } from 'astro';
import type { ImageMetadata } from "astro";

declare global {
type ImageType = Promise<{ default: ImageMetadata }>;
Expand Down

0 comments on commit a79ec56

Please sign in to comment.