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

preview command adds cross support #1144

Open
289420843 opened this issue Apr 8, 2024 · 6 comments
Open

preview command adds cross support #1144

289420843 opened this issue Apr 8, 2024 · 6 comments
Labels
feature New feature request pr welcome Welcome contributions for newcomers
Milestone

Comments

@289420843
Copy link

What problem does this feature solve?

cross-domain access to resource files is supported.

What does the proposed API look like?

farm.config add previewServer config

export default defineConfig({
  server: {
    ...
  },
  previewServer:{
    headers: {
      "Access-Control-Allow-Origin": "*",
    },
    ...
  }
}

or reuse server config.

@ErKeLost
Copy link
Member

ErKeLost commented Apr 8, 2024

Thanks, this is a good function point. pr welcome

@fu050409
Copy link
Member

@289420843 Hi, why close this issue?

@ErKeLost
Copy link
Member

We have added future plans for previewServer to this issues #1589, and we are also accelerating the pace of reconstructing the node side to improve the stability and diversity of farm

@289420843
Copy link
Author

@289420843 Hi, why close this issue?

It's been too long without any progress. If there's a plan, feel free to revive it.

@289420843 289420843 reopened this Aug 30, 2024
@fu050409 fu050409 added feature New feature request pr welcome Welcome contributions for newcomers labels Aug 30, 2024
@fu050409 fu050409 added this to the Planned milestone Aug 30, 2024
@daju233
Copy link

daju233 commented Sep 20, 2024

I am a frontend newComer. May I try to add it?I am tring to read the document. What is the good way to start?

@ErKeLost
Copy link
Member

hi @daju233 Currently, previewServer is being rebuilt. You can contact @fu050409 . he is now responsible for the rebuilt version of previewServer. If you want to contribute or learn other feature, you can take a look at this roadmap #1589 contributions are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request pr welcome Welcome contributions for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants