File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
src/frontend/apps/impress Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
NEXT_PUBLIC_API_ORIGIN =
2
2
NEXT_PUBLIC_SW_DEACTIVATED =
3
- NEXT_PUBLIC_PUBLISH_AS_MIT = true
4
- NEXT_PUBLIC_GRIST_API_KEY =
3
+ NEXT_PUBLIC_PUBLISH_AS_MIT = true
Original file line number Diff line number Diff line change 1
1
NEXT_PUBLIC_API_ORIGIN = http://localhost:8071
2
2
NEXT_PUBLIC_PUBLISH_AS_MIT = false
3
- NEXT_PUBLIC_SW_DEACTIVATED = true
4
- NEXT_PUBLIC_GRIST_API_KEY =
3
+ NEXT_PUBLIC_SW_DEACTIVATED = true
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import { gristApiUrl } from './config';
2
2
3
3
export const gristFetchApi = async ( input : string , init ?: RequestInit ) => {
4
4
const apiUrl = `${ gristApiUrl ( ) } ${ input } ` ;
5
- const bearerToken = `Bearer ${ process . env . NEXT_PUBLIC_GRIST_API_KEY } ` ;
5
+ const apiKey = localStorage . getItem ( 'grist_api_key' ) ;
6
+ const bearerToken = `Bearer ${ apiKey } ` ;
6
7
7
8
const headers = {
8
9
'Content-Type' : 'application/json' ,
You can’t perform that action at this time.
0 commit comments