- {envPasswordSet && (
-
-
- 全局密码
- {showPassword ? 'ACCESS_PASSWORD' : '••••••'}
- 不可在此删除
-
- )}
{passwords.map((pwd, index) => (
onRemove(pwd)}
className="text-[var(--text-color-secondary)] hover:text-red-500 transition-colors"
- title="删除本地密码"
+ title="删除密码"
>
diff --git a/lib/actions/auth.ts b/lib/actions/auth.ts
deleted file mode 100644
index eed07cc..0000000
--- a/lib/actions/auth.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-'use server';
-
-/**
- * Verifies if the provided password matches the ACCESS_PASSWORD environment variable.
- */
-export async function verifyEnvPassword(password: string): Promise {
- const accessPassword = process.env.ACCESS_PASSWORD;
- if (!accessPassword) return false;
- return password === accessPassword;
-}
-
-/**
- * Checks if a password is required by checking the presence of ACCESS_PASSWORD in the environment.
- */
-export async function isEnvPasswordRequired(): Promise {
- return !!process.env.ACCESS_PASSWORD;
-}
diff --git a/next.config.ts b/next.config.ts
index 7b36d92..314efe9 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -10,6 +10,8 @@ const nextConfig: NextConfig = {
removeConsole: process.env.NODE_ENV === 'production',
},
+ output: 'standalone',
+
images: {
remotePatterns: [
// Douban images
diff --git a/package-lock.json b/package-lock.json
index a515bac..a204738 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "kvideo",
- "version": "2.5.0",
+ "version": "2.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "kvideo",
- "version": "2.5.0",
+ "version": "2.1.0",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
diff --git a/package.json b/package.json
index 8ff34e0..b0c70d2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "kvideo",
- "version": "2.5.0",
+ "version": "2.1.0",
"private": true,
"scripts": {
"dev": "next dev",