Skip to content

Commit

Permalink
commented the env
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudLun committed Feb 22, 2024
1 parent bee0355 commit c58cd6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Map = () => {


useEffect(() => {
mapboxgl.accessToken = process.env.NEXT_PUBLIC_MAPBOX_TOKEN as string
mapboxgl.accessToken = "pk.eyJ1IjoiYmV0YW55YyIsImEiOiJhdEk0RmZ3In0.z3ayA_ZWlFP7Co7h-T-6WQ" as string

const m = new mapboxgl.Map({
container: mapContainer.current || "",
Expand Down
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
env: {
BASE_URL: process.env.NEXT_PUBLIC_MAPBOX_API_KEY,
}
// env: {
// BASE_URL: process.env.NEXT_PUBLIC_MAPBOX_API_KEY,
// }

}

Expand Down

0 comments on commit c58cd6b

Please sign in to comment.