Skip to content
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

DMZ Broken #1

Open
brettwilcox opened this issue Sep 30, 2021 · 2 comments
Open

DMZ Broken #1

brettwilcox opened this issue Sep 30, 2021 · 2 comments

Comments

@brettwilcox
Copy link
Member

brettwilcox commented Sep 30, 2021

Need to change the assets to address DMZ mode.

$this->config->scripts->add('https://unpkg.com/[email protected]/graphiql.min.js');

@brettwilcox
Copy link
Member Author

Unable to use application when offline due to script fetching from outside network.

@brettwilcox
Copy link
Member Author

brettwilcox commented Sep 30, 2021

From my old notes

/** Check if in debub mode and setup returned assets */
$ext = $this->config->debug ? "development" : "production.min";
// GraphiQL 1.0.x is causing issues where the 'History' and 'Docs" will not be collapsed properly
// after a page reload. I suspect it's how graphiql js is initialized from partial.php
$this->config->scripts->add($this->config->urls->templates . "js/es6-promise.auto.min.js");
$this->config->scripts->add($this->config->urls->templates . "js/fetch.umd.js");
$this->config->scripts->add($this->config->urls->templates . "js/react.$ext.js");
$this->config->scripts->add($this->config->urls->templates . "js/react-dom.$ext.js");
$this->config->scripts->add($this->config->urls->templates . "js/graphiql.min.js");
$this->config->styles->add($this->config->urls->templates . 'css/graphiql.min.css');

// Original
$this->config->scripts->add("https://unpkg.com/[email protected]/dist/es6-promise.auto.min.js");
$this->config->scripts->add("https://unpkg.com/[email protected]/dist/fetch.umd.js");
$this->config->scripts->add("https://unpkg.com/[email protected]/umd/react.production.min.js");
$this->config->scripts->add("https://unpkg.com/[email protected]/umd/react-dom.production.min.js");
$this->config->scripts->add('https://unpkg.com/[email protected]/graphiql.min.js');
$this->config->styles->add('https://unpkg.com/[email protected]/graphiql.css');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant