-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
.../config is a JavaScript header file (.h.js), but JavaScript header files should only be used for +config.h.js #1370
Comments
See how |
Curious: what is it you're building? |
I was looking for something working nicely with classic express app where I can e.g. fetch the data in the route and pass it into "page". I'm fairly sure I will use Vike in my future projects and I'm trying to build mini framework (only for my own usage) to minimize boilerplate aka "Zero config". That's the experience I want to get in the end in my case:
That's all. I want to achieve it without need to explicitly create Not sure how can I get rid of need to manually create +config.h.js in either I'm much, much more excited about Vike than Astro and Next. |
I thought I can combine
When I removed Looking at
|
AFAICT you should be able to achieve everything you mentioned. Also note that there'll soon be a |
@UROjQ6r80p let us know how things go :) Also, contributions and sponsoring welcome 🙏 |
Description
Hello,
I'm experimenting with creating my own custom little framework for my own usage.
I have pnpm monorepo with package
react-meta-framework
exporting+config.h.js
Then in
renderer/+config.h.js
I import it like this:However it shows warning:
Should I be worried about it?
I don't have this warning when importing e.g.
vike-react
config.Here is minimal repo for reproduction: https://github.com/UROjQ6r80p/vike-custom-framework-test/tree/main
The text was updated successfully, but these errors were encountered: