Skip to content

Commit

Permalink
Merge pull request #26 from canonn-science/staging
Browse files Browse the repository at this point in the history
Enable playground on prod
  • Loading branch information
derrickmehaffy committed Jun 15, 2018
2 parents 58c4134 + 5d7d90a commit d922f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/admin/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="mobile-web-app-capable" content="yes"><title>Strapi Admin</title></head><body front="/admin" back="/"><div id="app"></div><script type="text/javascript" src="/admin/vendor.dll.js"></script><script type="text/javascript" src="/admin/main.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="mobile-web-app-capable" content="yes"><title>Strapi Admin</title></head><body><div id="app"></div><script type="text/javascript" src="/admin/vendor.dll.js"></script><script type="text/javascript" src="/admin/main.js"></script></body></html>
2 changes: 1 addition & 1 deletion plugins/graphql/hooks/graphql/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = strapi => {
})(ctx, next));

// Disable GraphQL Playground in production environment.
if (strapi.config.environment !== 'production') {
if (strapi.config.environment !== 'noplayground') {
router.get('/playground', koaPlayground({ endpoint: strapi.plugins.graphql.config.endpoint}));
}

Expand Down

0 comments on commit d922f1a

Please sign in to comment.