Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Jan 19, 2025
1 parent 8fc2e7d commit 8a41584
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/zerocat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:

- name: Build
env:
APIHOST: ${{ vars.APIHOST }}
ASSETSHOST: ${{ vars.ASSETSHOST }}
ZCAPIHOST: ${{ vars.ZCAPIHOST }}
ZCASSETHOST: ${{ vars.ZCASSETHOST }}
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn install
Expand Down
2 changes: 1 addition & 1 deletion src/lib/project-fetcher-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const ProjectFetcherHOC = function (WrappedComponent) {
setProjectId: PropTypes.func
};
ProjectFetcherComponent.defaultProps = {
assetHost: process.env.ZCASSET,
assetHost: process.env.ZCASSETHOST,
projectHost: 'https://projects.scratch.mit.edu'
};

Expand Down
2 changes: 1 addition & 1 deletion src/playground/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<script src="<%= process.env.ZCAPI %>/scratchtool"></script>
<script src="<%= process.env.ZCAPIHOST %>/scratchtool"></script>
<% if (htmlWebpackPlugin.options.enablePWA ) { %>
<!--<meta name="viewport" content="width=device-width, user-scalable=no" />-->
<link rel="manifest" href="manifest.webmanifest">
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ function getPlugins () {
let res = base.plugins.concat([
new webpack.DefinePlugin({
'process.env.NODE_ENV': '"' + process.env.NODE_ENV + '"',
'process.env.ZCAPI': '"' + process.env.ZCAPI + '"',
'process.env.ZCASSET': '"' + process.env.ZCASSET + '"',
'process.env.ZCAPIHOST': '"' + process.env.ZCAPIHOST + '"',
'process.env.ZCASSETHOST': '"' + process.env.ZCASSETHOST + '"',
'process.env.DEBUG': Boolean(process.env.DEBUG),
'process.env.GA_ID': '"' + (process.env.GA_ID || 'UA-000000-01') + '"'
}),
Expand Down

0 comments on commit 8a41584

Please sign in to comment.