zgl 1 settimana fa
parent
commit
ac19213037
6 ha cambiato i file con 10 aggiunte e 10 eliminazioni
  1. 2 2
      .env.example
  2. 1 1
      README.md
  3. 2 2
      package.json
  4. 2 2
      src/app/globals.css
  5. 1 1
      src/app/layout.tsx
  6. 2 2
      src/utils/helper.ts

+ 2 - 2
.env.example

@@ -6,7 +6,7 @@ APP_ENV=development
 NEXT_PUBLIC_APP_ENV=development
 
 # 前端项目部署的域名
-NEXT_PUBLIC_SITE_URL=http://localhost:3001
+NEXT_PUBLIC_SITE_URL=http://localhost:3000
 
 # Bagisto API Configuration
 # 后端接口域名
@@ -15,7 +15,7 @@ NEXT_PUBLIC_BAGISTO_ENDPOINT=https://your-bagisto-instance.com
 NEXT_PUBLIC_BAGISTO_STOREFRONT_KEY=your_storefront_key_here
 
 # NextAuth Configuration 测试环境和生产环境要写实际部署的域名
-NEXTAUTH_URL=http://localhost:3001
+NEXTAUTH_URL=http://localhost:3000
 # NextAuth 使用 secret(下面的值)对 session中的token 对象进行 签名 + 加密,生成一个 JWT 字符串,解密这个JWT字符串就可以还原token对象。
 NEXTAUTH_SECRET=9jstKgQ1Q22PlDDhPtXTZ6G4MEzHGDJIkebcd/5UyZ4=
 

+ 1 - 1
README.md

@@ -204,7 +204,7 @@ NEXT_PUBLIC_BAGISTO_STOREFRONT_KEY=pk_storefront_5JHJ7e8Vb10aCmlTexi5OaaFRqPYsrO
 
 # NextAuth Configuration
 # 本地开发的域名
-NEXTAUTH_URL=http://localhost:3001
+NEXTAUTH_URL=http://localhost:3000
 # NextAuth 使用 secret(下面的值)对 session中的token 对象进行 签名 + 加密,生成一个 JWT 字符串,解密这个JWT字符串就可以还原token对象。
 # 由命令: openssl rand -base64 32 生成
 NEXTAUTH_SECRET=9jstKgQ1Q22PlDDhPtXTZ6G4MEzHGDJIkebcd/5UyZ4=

+ 2 - 2
package.json

@@ -3,9 +3,9 @@
   "version": "0.1.0",
   "private": true,
   "scripts": {
-    "dev": "next dev -p 3001",
+    "dev": "next dev -p 3000",
     "build": "eslint . && next build",
-    "start": "next start -p 3001",
+    "start": "next start -p 3000",
     "lint": "eslint .",
     "lint:fix": "eslint . --fix",
     "package-version": "npx npm-check-updates"

+ 2 - 2
src/app/globals.css

@@ -37,11 +37,11 @@ body::-webkit-scrollbar-thumb {
  * tailwindcss中单位用的是rem, 默认根字号为16px,也就是在tailwindcss中,0.25rem = 4px,
  * 而对于类名 w-1 来说,这里的1就是0.25rem,即4px,那么w-1就是4px,w-2就是8px,以此类推
  * 
- * */
+ * 
 html {
   font-size: clamp(10px, 4.1025641vw, 40px);
 }
-
+*/
 /* GLOBAL VARIABLES :root中定义常规变量,不被映射到工具类*/
 :root {
   /* Font families */

+ 1 - 1
src/app/layout.tsx

@@ -37,7 +37,7 @@ const __srOnly: React.CSSProperties = {
 export const viewport: Viewport = {
   width: 'device-width',
   initialScale: 1,
-  maximumScale: 2,
+  // maximumScale: 1,
   // userScalable: false,
   viewportFit: "cover"
   // Also supported but less commonly used

+ 2 - 2
src/utils/helper.ts

@@ -25,7 +25,7 @@ export const createUrl = (
  * @returns string
  */
 export const getBaseUrl = (baseUrl: string) => {
-  return baseUrl ? `https://${baseUrl}` : "http://localhost:3001";
+  return baseUrl ? `https://${baseUrl}` : "http://localhost:3000";
 };
 
 export const isCleanFilter = (
@@ -148,7 +148,7 @@ export async function generateMetadataForPage(
   };
 
   return {
-    metadataBase: new URL(baseUrl || BASE_URL || "http://localhost:3001"),
+    metadataBase: new URL(baseUrl || BASE_URL || "http://localhost:3000"),
 
     title,
     description,