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

docs: add path types example for publicDir config #1285

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

chenjiahan
Copy link
Member

Summary

Add path types example for publicDir config.

The value of name can be set to a relative path or an absolute path. Relative path will be resolved relative to the project root directory.

  • Example of a relative path:
export default {
  server: {
    publicDir: {
      name: '../some-public',
    },
  },
};
  • Example of an absolute path:
import path from 'node:path';

export default {
  server: {
    publicDir: {
      name: path.join(__dirname, '../some-public'),
    },
  },
};

Checklist

  • Tests updated.
  • Documentation updated.

Copy link

netlify bot commented Jan 15, 2024

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 43f0d8f
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/65a53c7ab26e540008507d08
😎 Deploy Preview https://deploy-preview-1285--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@chenjiahan chenjiahan merged commit 28f647e into main Jan 15, 2024
11 checks passed
@chenjiahan chenjiahan deleted the public_dir_doc_011 branch January 15, 2024 14:36
@chenjiahan chenjiahan mentioned this pull request Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant