feat: add service account file configuration and update dashboard API for demo mode

This commit is contained in:
daniel31x13
2025-10-30 10:44:04 -04:00
parent c839e7ac4c
commit e0f3bc3bc2
5 changed files with 59 additions and 2 deletions

4
.gitignore vendored
View File

@@ -51,4 +51,6 @@ certificates
.idea
prisma/dev.db
data.ms
.turbo
.turbo
service-account-file.json

42
apps/mobile/.easignore Normal file
View File

@@ -0,0 +1,42 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
# dependencies
node_modules/
# Expo
.expo/
dist/
web-build/
expo-env.d.ts
# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
# Metro
.metro-health-check*
# debug
npm-debug.*
yarn-debug.*
yarn-error.*
# macOS
.DS_Store
*.pem
# local env files
.env*.local
# typescript
*.tsbuildinfo
app-example
.env
ios/
android/

View File

@@ -39,4 +39,6 @@ app-example
.env
ios/
android/
android/
service-account-file.json

View File

@@ -24,6 +24,11 @@
"production": {
"ios": {
"ascAppId": "6752550960"
},
"android": {
"serviceAccountKeyPath": "./service-account-file.json",
"track": "internal",
"releaseStatus": "draft"
}
}
}

View File

@@ -26,6 +26,12 @@ export default async function dashboard(
}
if (req.method === "PUT") {
if (process.env.NEXT_PUBLIC_DEMO === "true")
return res.status(400).json({
response:
"This action is disabled because this is a read-only demo of Linkwarden.",
});
const { status, response } = await updateDashboardLayout(user.id, req.body);
return res.status(status).json(response);