refactor: migrate from firebase to vercel
This commit is contained in:
parent
43f80f9285
commit
717282ceb1
18 changed files with 545 additions and 98 deletions
1
apps/blog/.gitignore
vendored
1
apps/blog/.gitignore
vendored
|
@ -4,6 +4,7 @@
|
|||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
.yarn/install-state.gz
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: "export",
|
||||
distDir: "build",
|
||||
images: { unoptimized: true },
|
||||
experimental: {
|
||||
externalDir: true,
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
9
apps/blog/vercel.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/stats/:match*",
|
||||
"destination": "https://analytics.umami.is/:match*"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue