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

WIP fix build vs serve #417

Closed
wants to merge 6 commits into from
Closed

WIP fix build vs serve #417

wants to merge 6 commits into from

Conversation

nuke-web3
Copy link

Closes #370

still not quite there, help would be aprreciated!

nuke-web3 added a commit to Polkadot-Blockchain-Academy/pba-content that referenced this pull request May 23, 2022
nuke-web3 added a commit to Polkadot-Blockchain-Academy/pba-content that referenced this pull request May 23, 2022
kianenigma pushed a commit to Polkadot-Blockchain-Academy/pba-content that referenced this pull request Jul 19, 2023
@MartenBE
Copy link
Contributor

Do you need any help with this?

@MartenBE
Copy link
Contributor

MartenBE commented Sep 15, 2023

I've tried it out and only changing the following fixed my use case (theme is selected for both the listings page as the slides):

module.exports.getThemeUrl = (theme, base = '') => {
  const parsedUrl = url.parse(theme);
  if (parsedUrl.host) {
    return theme;
  } else {
    const revealTheme = revealThemes.find(
      themePath => path.basename(themePath).replace(path.extname(themePath), '') === theme
    );
    return base + '/' + (revealTheme ? revealTheme : getAssetPath(theme)); // CHANGED ONLY THIS LINE
  }
};

This is the only line I changed from the npm package. @webpro , would this be a valid fix? This is currently the only bug to stop using this at our educational institution. This should at least fix #439 , however I am not certain what revealTheme does, the change probably wouldn't affect it.

@nuke-web3
Copy link
Author

Do you need any help with this?

Sure - happy to have you replace this PR with another that include a patch and see if that fixes my issues as well 😀 - we are using this patch at an educational program in production, would be great to see what you are up too as well @MartenBE

@MartenBE
Copy link
Contributor

I've submitted #458 , please try it out. It solves my error (but it is a small use case).

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

Successfully merging this pull request may close these issues.

serve vs build discrepancy
2 participants