Skip to content

Commit b93918f

Browse files
committed
feat: sourcemap
1 parent ed93ff8 commit b93918f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webapp/_webapp/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function generateConfig(
2323
verbose: true,
2424
// instructions on how to obtain your API key are in the documentation
2525
// https://grafana.com/docs/grafana-cloud/monitor-applications/frontend-observability/sourcemap-upload-plugins/#obtain-an-api-key
26-
apiKey: process.env.GRAFANA_API_KEY || "glc_xxxxx",
26+
apiKey: process.env.GRAFANA_API_KEY || "glc_eyJvIjoiMTYxNTMzNCIsIm4iOiJwYXBlcmRlYnVnZ2VyLXNvdXJjZW1hcC1hY2Nlc3MtcG9saWN5LWNocm9tZS1leHRlbnNpb24iLCJrIjoiMzc4MnUzUDY1WjgyaVlpaGhEdUl0d0wxIiwibSI6eyJyIjoicHJvZC1hcC1zb3V0aGVhc3QtMSJ9fQ==",
2727
gzipContents: true,
2828
})],
2929
esbuild: {
@@ -50,6 +50,7 @@ function generateConfig(
5050
formats: ["iife"],
5151
fileName: () => `${name}.js`,
5252
},
53+
sourcemap: true,
5354
},
5455
},
5556
(draft) => updater?.(draft),

0 commit comments

Comments
 (0)