Closed jacqui closed 2 years ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
staging-tiny-news-sites | ✅ Ready (Inspect) | Visit Preview | Apr 21, 2022 at 9:57PM (UTC) |
❯ node script/bootstrap -n "Test New Bootstrap" -s test-new-bootstrap -u https://bootstrap.tinynewsco.dev -b bootstrap -c bootstraptnc.com
Creating organization in the database and env...
/Users/tylerfisher/src/next-tinynewsdemo/node_modules/googleapis/node_modules/googleapis-common/build/src/apirequest.js:116
throw new Error('Missing required parameters: ' + missingParams.join(', '));
^
Error: Missing required parameters: accountId
at createAPIRequestAsync (/Users/tylerfisher/src/next-tinynewsdemo/node_modules/googleapis/node_modules/googleapis-common/build/src/apirequest.js:116:15)
at Object.createAPIRequest (/Users/tylerfisher/src/next-tinynewsdemo/node_modules/googleapis/node_modules/googleapis-common/build/src/apirequest.js:52:16)
at Resource$Management$Webproperties.insert (/Users/tylerfisher/src/next-tinynewsdemo/node_modules/googleapis/build/src/apis/analytics/v3.js:2519:44)
at setupGoogleAnalytics (/Users/tylerfisher/src/next-tinynewsdemo/script/bootstrap.js:244:59)
at createOrganization (/Users/tylerfisher/src/next-tinynewsdemo/script/bootstrap.js:375:38)
at /Users/tylerfisher/src/next-tinynewsdemo/script/bootstrap.js:631:13
at Command.<anonymous> (/Users/tylerfisher/src/next-tinynewsdemo/script/bootstrap.js:633:7)
at Command.listener [as _actionHandler] (/Users/tylerfisher/src/next-tinynewsdemo/node_modules/commander/index.js:922:31)
at Command._parseCommand (/Users/tylerfisher/src/next-tinynewsdemo/node_modules/commander/index.js:1503:14)
at Command.parse (/Users/tylerfisher/src/next-tinynewsdemo/node_modules/commander/index.js:1292:10)
Some new stuff that will hopefully make adding a new org to the platform a bit easier.
Closes #1033
settings
tableNew bootstrap command:
I ran the above command, then started my dev server locally, and I was able to follow the instructions outlined in the Google Doc.
The tinycms admin section works by ignoring the subdomain (I kept it on next-tinynewsdemo.localhost) and instead using the subdomain param (context.params.subdomain) to lookup and update records in Hasura.