Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #634 from mirumee/feature/preconnect_to_api_uri
Browse files Browse the repository at this point in the history
Preconnect to Graphql API_URI
  • Loading branch information
orzechdev authored Feb 28, 2020
2 parents b0e6aaf + 964300d commit 71ebdfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/webpack/config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ module.exports = ({ sourceDir, distDir }) => ({
new HtmlWebpackPlugin({
filename: `${distDir}/index.html`,
template: `${sourceDir}/index.html`,
API_URI: process.env.API_URI,
}),
new ForkTsCheckerWebpackPlugin({
tslint: true,
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<title>Saleor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="<%= htmlWebpackPlugin.options.API_URI %>" />
<link
rel="preconnect"
href="https://rsms.me/inter/inter.css"
Expand Down

0 comments on commit 71ebdfb

Please sign in to comment.