Hi I was trying to load graphiql in offline enviro...
# getting-started
g
Hi I was trying to load graphiql in offline environment. However, the code is pointing to a public cdn to retrieve the required js files like graphiql, react-dom and etc. Anyone is able to load local copies of these files in their offline env and get it to work (not thinking of setting a internal cdn)? The code I am referring to is https://github.com/datahub-project/datahub/blob/master/metadata-service/auth-impl/src/main/resources/graphiql/index.html
b
hey junjie! great question. it looks like as of now you can't use graphiql in an offline env for the reasons that you mentioned. I believe you can download a graphql client that would then allow you to run locally with no online connection! such as chromeiql or altair
g
@bulky-soccer-26729 Hi Chris. Managed to load the local copies of the JS scripts and CSS file without pointing to CDN. I got it to work by implementing/overriding the "addResourceHandlers" method to serve static contents from specific directory