mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
fix: use import.meta.env.
This commit is contained in:
1 parent
d68870c254
commit
c0d16b51de
10 files changed
+18
-18
No files matched your search
@@ -7,8 +7,8 @@ export async function commitAssets(message: string, changes: FileChange[]) {
|
||||
if (changes.length === 0) return;
|
||||
|
||||
await commitMultipleFiles(
|
||||
assertSecret(process.env.PUBLIC_ASSET_REPO),
|
||||
assertSecret(process.env.PUBLIC_ASSET_BRANCH),
|
||||
assertSecret(import.meta.env.PUBLIC_ASSET_REPO),
|
||||
assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH),
|
||||
`${message} - ${new Date().toDateString()}`,
|
||||
changes,
|
||||
);
|
||||
|
||||
@@ -5,5 +5,5 @@ import { Octokit } from '@octokit/rest';
|
||||
Octokit.plugin(throttling);
|
||||
|
||||
export const octokit = new Octokit({
|
||||
auth: assertSecret(process.env.GH_TOKEN),
|
||||
auth: assertSecret(import.meta.env.GH_TOKEN),
|
||||
});
|
||||
Reference in new issue
Block a user