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

Base Path Configuration with root Option Does Not Work #267

Open
maifeeulasad opened this issue Jan 15, 2025 · 0 comments
Open

Base Path Configuration with root Option Does Not Work #267

maifeeulasad opened this issue Jan 15, 2025 · 0 comments

Comments

@maifeeulasad
Copy link

Hi there, 👋

I’m using bisheng to build a site, and I encountered an issue when trying to deploy it under a subdirectory (e.g., /subdir/). According to the documentation, the root option in bisheng.config.js should handle this, but it doesn’t seem to work as expected.

Here’s what I tried:

Configuration:

const commonConfig = require('./bisheng.common.config');

module.exports = { source: {},
  output: './_site/',
  root: '/ocr-landing/',
  entryName: 'templates',
  theme: './site/templates',
  htmlTemplate: './site/templates/static/index.html',
  port: 7113,
  themeConfig: {
  },
  ...commonConfig };

Expected Behavior:

  • The site should load at https://neurobangla.github.io/ocr-landing/.

Actual Behavior:

  • The site only loads correctly at /. Only on local host
  • Navigating to any other page results in a NotFound error.

Steps to Reproduce:

  • git clone https://github.com/NeuroBangla/ocr-landing.git
  • git checkout 0e9f06a8248178b9fb774864cf076b5a78cc1ec7
  • yarn
  • yarn start

Questions:

  • Is there additional configuration needed to make the root option work?
  • Are there specific versions of bisheng or dependencies required for this functionality?

If this is a bug, I’d appreciate any guidance or workarounds while it’s being addressed. Thank you for your time and for maintaining this great project! 🙏

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