-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: spreadsheet/get prepare for future schema #26
Conversation
throw new Error("statsRow is not defined"); | ||
} | ||
const README = statsRow?.values?.[3]?.formattedValue! ?? ""; | ||
// TODO: stats should be different by year |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, the "budget" sheet is not defined yet.
{ | ||
year: currentYear, | ||
stats, | ||
README, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README will be moved to top-level?
@@ -5,9 +5,11 @@ | |||
"scripts": { | |||
"dev": "npm-run-all -p dev:next", | |||
"dev:next": "next --port 3000", | |||
"dev:prod": "ENABLE_PRODUCTION_DATA=1 next --port 3000", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
start with production data.
It is useful for debug.
export const TEST_SPREADSHEET_URL = | ||
"https://docs.google.com/spreadsheets/d/1gmVOU7Zi_g6fV7aWPUnZhgKLd5EdltxeWbwlufM3Plc/edit"; | ||
export const hasTestCredential = () => { | ||
return Boolean(process.env.TEST_GOOGLE_CREDENTIAL_BASE64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TEST_GOOGLE_CREDENTIAL_BASE64 is just base64 of credentials
object.
api/spreadsheet/get
support next records schema Definition of SpreadSheet Schema #22