Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

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

daniel31x13e0f3bc3bc28e
diff --git a/.gitignore b/.gitignore
index 4df3a9eb..ca08201f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,4 +51,6 @@ certificates
.idea
prisma/dev.db
data.ms
-.turbo
\ No newline at end of file
+.turbo
+
+service-account-file.json
\ No newline at end of file
diff --git a/apps/mobile/.easignore b/apps/mobile/.easignore
new file mode 100644
index 00000000..aaca6e1f
--- /dev/null
+++ b/apps/mobile/.easignore
@@ -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/
diff --git a/apps/mobile/.gitignore b/apps/mobile/.gitignore
index d980b383..bfcd03f2 100644
--- a/apps/mobile/.gitignore
+++ b/apps/mobile/.gitignore
@@ -39,4 +39,6 @@ app-example
.env
ios/
-android/
\ No newline at end of file
+android/
+
+service-account-file.json
diff --git a/apps/mobile/eas.json b/apps/mobile/eas.json
index ee206f0b..e8461fc5 100644
--- a/apps/mobile/eas.json
+++ b/apps/mobile/eas.json
@@ -24,6 +24,11 @@
"production": {
"ios": {
"ascAppId": "6752550960"
+ },
+ "android": {
+ "serviceAccountKeyPath": "./service-account-file.json",
+ "track": "internal",
+ "releaseStatus": "draft"
}
}
}
diff --git a/apps/web/pages/api/v2/dashboard/index.ts b/apps/web/pages/api/v2/dashboard/index.ts
index 9efc116a..4daa0b4d 100644
--- a/apps/web/pages/api/v2/dashboard/index.ts
+++ b/apps/web/pages/api/v2/dashboard/index.ts
@@ -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);