Skip to content

Commit

Permalink
fix: token to private env
Browse files Browse the repository at this point in the history
  • Loading branch information
asabotovich committed Feb 22, 2024
1 parent 8c48a94 commit 2488d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ S3_PATH_STYLE=
S3_TLS=

NEXT_PUBLIC_CREW_URL=
NEXT_PUBLIC_CREW_API_TOKEN=
CREW_API_TOKEN=

# in case you don't have access to unpkg CDN you can include all scripts with framework to main bundle
INCLUDE_SCRIPTS_TO_MAIN_BUNDLE=
Expand Down
2 changes: 1 addition & 1 deletion trpc/router/crew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Team } from '../../src/types/crew';
import { protectedProcedure, router } from '../trpcBackend';

const getToken = () => {
const authorization = process.env.NEXT_PUBLIC_CREW_API_TOKEN;
const authorization = process.env.CREW_API_TOKEN;

if (!authorization) {
throw new TRPCError({ code: 'FORBIDDEN', message: 'No api token for crew' });
Expand Down

0 comments on commit 2488d3a

Please sign in to comment.