@majordigital/create-acorn 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-acorn.mjs +3 -4
- package/package.json +1 -1
package/bin/create-acorn.mjs
CHANGED
|
@@ -444,7 +444,6 @@ async function setupDato(projectName) {
|
|
|
444
444
|
writeFileSync(envExamplePath, `NEXT_DATOCMS_API_TOKEN=
|
|
445
445
|
DATO_API_TOKEN=
|
|
446
446
|
NEXT_DATOCMS_ENVIRONMENT=draft
|
|
447
|
-
NEXT_PUBLIC_SITE_URL=
|
|
448
447
|
`);
|
|
449
448
|
console.log('Updated .env.example with DatoCMS variables.');
|
|
450
449
|
} catch {
|
|
@@ -598,9 +597,9 @@ This website is built using the [NextJS](https://nextjs.org/) framework, utilisi
|
|
|
598
597
|
Create \`.env.local\` file in the root directory:
|
|
599
598
|
|
|
600
599
|
\`\`\`env
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
600
|
+
NEXT_DATOCMS_API_TOKEN=your_graphql_token
|
|
601
|
+
DATO_API_TOKEN=your_readonly_token
|
|
602
|
+
NEXT_DATOCMS_ENVIRONMENT="draft"
|
|
604
603
|
\`\`\`
|
|
605
604
|
|
|
606
605
|
3. **Start the development server**
|
package/package.json
CHANGED