perf: The map is not packaged into the code to reduce the server size

This commit is contained in:
ccbikai
2024-06-08 17:15:25 +08:00
parent d2c83e43d4
commit c894fde09f
5 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -16,4 +16,4 @@ WorldMapTopoJSON.objects.states.geometries.map((state) => {
return state
})
writeFileSync(join(import.meta.dirname, '../assets/location/world-topo.json'), JSON.stringify(WorldMapTopoJSON), 'utf8')
writeFileSync(join(import.meta.dirname, '../public/world.json'), JSON.stringify(WorldMapTopoJSON), 'utf8')