refactor: migrate from firebase to vercel

This commit is contained in:
Kim, Jimin 2024-04-27 12:19:23 +09:00
parent 43f80f9285
commit 717282ceb1
Signed by: pomp
GPG key ID: 2B516173EDD492EB
18 changed files with 545 additions and 98 deletions

View file

@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
# testing
/coverage

View file

@ -1,8 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
distDir: "build",
images: { unoptimized: true },
experimental: {
externalDir: true,
},

View file

@ -64,7 +64,7 @@ export default function RootLayout({
<script
async
defer
src="https://eu.umami.is/script.js"
src="/stats/script.js"
data-website-id="aa2eb701-74e2-4d81-ad27-9de6850b7f50"
></script>
</head>

View file

@ -1,6 +1,5 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
@ -23,12 +22,6 @@
"@/*": ["./src/*"]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"build/types/**/*.ts"
],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

9
apps/blog/vercel.json Normal file
View file

@ -0,0 +1,9 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"rewrites": [
{
"source": "/stats/:match*",
"destination": "https://analytics.umami.is/:match*"
}
]
}