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

How to configure with SolidStart #305

Open
nixigaj opened this issue May 23, 2024 · 1 comment
Open

How to configure with SolidStart #305

nixigaj opened this issue May 23, 2024 · 1 comment

Comments

@nixigaj
Copy link

nixigaj commented May 23, 2024

The latest template that you get when using npm create solid to create a SolidStart projects seems to be using Vinxi as build tool, which uses Vite internally. The documentation for setting upp Solid Developer Tools on the server side explains how to set it up as a Vite plugin but the documentation for Vite plugins for Vinxi is nonexistent as of writing this issue. While i know that this is technically an issue on Vinxi's side I am wondering if there are any easy instructions for setting this up with the newest SolidStart template?

@InSuperposition
Copy link

InSuperposition commented May 31, 2024

Using these instructions, apply the devtools plugin to the vite key in defineConfig() in app.config.ts

import { defineConfig } from "@solidjs/start/config";
import devtools from 'solid-devtools/vite';

export default defineConfig({
 vite: {
  plugins: [
   devtools({
    /* features options - all disabled by default */
    autoname: true, // e.g. enable autoname
   }),
  ],
 }
});

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

2 participants