Skip to content

Improve the code #5

@jamesli2021

Description

@jamesli2021

To improve the speed of development and production, we don't need type and define:vars parameters and simplify the code to just:

<script>
const projectId = import.meta.env.DEV ? import.meta.env.PUBLIC_PROJECT_ID_DEV : import.meta.env.PUBLIC_PROJECT_ID_PROD;

...
</script>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions