Skip to content
This repository has been archived by the owner on Dec 20, 2020. It is now read-only.

Commit

Permalink
🔧 Enable headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiejeben committed Nov 21, 2019
1 parent 1a4908f commit 7e78315
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions backend/config/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
// Whether to save the project config out to config/project.yaml
// (see https://docs.craftcms.com/v3/project-config.html)
'useProjectConfigFile' => true,

// Disable frontend Twig templates
'headlessMode' => true,
],

// Dev environment settings
Expand Down
13 changes: 7 additions & 6 deletions backend/config/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ categoryGroups:
hasUrls: false
uriFormat: null
template: null
dateModified: 1563216393
dateModified: 1574345686
email:
fromEmail: $SYSTEM_EMAIL_ADDRESS
fromName: $SITE_NAME
Expand Down Expand Up @@ -193,14 +193,15 @@ plugins:
enabled: true
schemaVersion: 1.1.0
settings:
allowedHeaders:
- 'Authorization, Content-Type'
graphiqlFetchUrl: /
maxQueryComplexity: false
maxQueryDepth: false
uri: graphql
verbs:
- POST
allowedHeaders:
- 'Authorization, Content-Type'
maxQueryDepth: false
maxQueryComplexity: false
throwSchemaBuildErrors: false
redactor:
edition: standard
enabled: true
Expand Down Expand Up @@ -322,14 +323,14 @@ siteGroups:
name: Boilerplate
sites:
95e89cc5-91be-44e4-833a-5d3017e3601f:
siteGroup: 8c7f591a-8b93-4e6e-9028-647b8f681e09
name: Boilerplate
handle: default
language: en-US
hasUrls: true
baseUrl: $APP_URL
sortOrder: 1
primary: true
siteGroup: 8c7f591a-8b93-4e6e-9028-647b8f681e09
system:
edition: pro
live: true
Expand Down

0 comments on commit 7e78315

Please sign in to comment.