Skip to content

Commit

Permalink
put more stuff in env file
Browse files Browse the repository at this point in the history
  • Loading branch information
JonYeb committed Oct 3, 2024
1 parent 0d62f24 commit d1bd301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
ENCRYPTION_KEY=SOME_STRING
NAME=CONFIG_NAME
NAME=CONFIG_NAME
CLIENT_API_KEY=API_KEY
USER_AGENT=''
7 changes: 5 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import 'dotenv/config';
import * as process from 'node:process';

import { RequestHeader } from './types';

export const CLIENT_API_KEY = 'JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26';
export const CLIENT_API_KEY = process.env.CLIENT_API_KEY;

export const BASE_URL = 'https:/vrchat.com';
export const API_BASE_URL = `${BASE_URL}/api/1`;

export const DEFAULT_HEADER: RequestHeader = {
'User-Agent': 'VRC-ASS/0.1.0 [email protected]',
'User-Agent': process.env.USER_AGENT,
// 'connect-src': `${BASE_URL}*`,
// 'Access-Control-Allow-Origin': BASE_URL,
};
Expand Down

0 comments on commit d1bd301

Please sign in to comment.