完成页面的基础配置
This commit is contained in:
24
src/config/config.ts
Normal file
24
src/config/config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export const config = {
|
||||
backendUrl: process.env.NEXT_PUBLIC_BACKEND_URL || "http://192.168.1.42:8000",
|
||||
mapUrl: process.env.NEXT_PUBLIC_MAP_URL || "http://127.0.0.1:8080/geoserver",
|
||||
mapExtent: [13508849, 3608035.75, 13555781, 3633812.75],
|
||||
// 添加其他配置项...
|
||||
};
|
||||
|
||||
export const MAPBOX_TOKEN =
|
||||
process.env.NEXT_PUBLIC_MAPBOX_TOKEN ||
|
||||
"pk.eyJ1IjoiemhpZnUiLCJhIjoiY205azNyNGY1MGkyZDJxcTJleDUwaHV1ZCJ9.wOmSdOnDDdre-mB1Lpy6Fg";
|
||||
export const TIANDITU_TOKEN =
|
||||
process.env.NEXT_PUBLIC_TIANDITU_TOKEN || "e3e8ad95ee911741fa71ed7bff2717ec";
|
||||
export const PROJECT_TITLE =
|
||||
process.env.NEXT_PUBLIC_PROJECT_TITLE || "TJWater Project";
|
||||
|
||||
export const META_DATA = {
|
||||
title: PROJECT_TITLE,
|
||||
description: "Developed by TJWATER",
|
||||
icons: {
|
||||
icon: "/favicon.ico",
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user