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*"
|
||||
}
|
||||
]
|
||||
}
|
2
apps/main/.gitignore
vendored
2
apps/main/.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
.vercel/
|
||||
|
||||
# testing
|
||||
/test-results
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"@fontsource/noto-sans-kr": "^5.0.5",
|
||||
"@inqling/svelte-icons": "^4.0.2",
|
||||
"@playwright/test": "^1.36.2",
|
||||
"@sveltejs/adapter-static": "^3.0.1",
|
||||
"@sveltejs/adapter-vercel": "^5.3.0",
|
||||
"@sveltejs/kit": "^2.0.6",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
||||
"@types/jest": "^29.5.11",
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<script
|
||||
async
|
||||
defer
|
||||
src="https://eu.umami.is/script.js"
|
||||
src="/stats/script.js"
|
||||
data-website-id="3cecce37-5899-497f-9bbc-f7dafb5cae30"
|
||||
></script>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import adapter from "@sveltejs/adapter-static"
|
||||
import adapter from "@sveltejs/adapter-vercel"
|
||||
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
|
@ -9,13 +9,7 @@ const config = {
|
|||
paths: {
|
||||
relative: false,
|
||||
},
|
||||
adapter: adapter({
|
||||
pages: "build",
|
||||
assets: "build",
|
||||
fallback: "index.html",
|
||||
precompress: true,
|
||||
strict: true,
|
||||
}),
|
||||
adapter: adapter({ runtime: "edge" }),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
9
apps/main/vercel.json
Normal file
9
apps/main/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