Agent skill
solidstart-config
SolidStart configuration: app.config.ts with defineConfig, deployment presets (Netlify/Vercel/Cloudflare/etc.), prerendering/SSG, Vite plugins, experimental features.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/solidstart-config
Metadata
Additional technical details for this skill
- globs
-
[ "app.config.ts", "vite.config.*" ]
SKILL.md
SolidStart Configuration
app.config.ts
import { defineConfig } from "@solidjs/start/config";
export default defineConfig({
// Toggle SSR
ssr: true,
// Solid plugin config
solid: {
// Solid plugin options
},
// File extensions treated as routes
extensions: ["js", "jsx", "ts", "tsx"],
// Server config (Nitro)
server: {
preset: "node", // Deployment preset
prerender: {
routes: ["/", "/about"],
// or crawlLinks: true
}
},
// App root and route directories
appRoot: "./src",
routeDir: "./routes",
// Middleware path
middleware: "src/middleware/index.ts",
// Dev overlay
devOverlay: true,
// Experimental features
experimental: {
islands: false
},
// Vite config
vite: {
plugins: []
}
});
Vite Configuration
Can be object or function for per-router config:
// Object config
vite: {
plugins: []
}
// Function config (per router)
vite({ router }) {
if (router === "server") {
// Server router config
} else if (router === "client") {
// Client router config
} else if (router === "server-function") {
// Server function router config
}
return { plugins: [] };
}
Deployment Presets
- Node.js:
"node"(default) - Netlify:
"netlify"or"netlify_edge" - Vercel:
"vercel"or"vercel_edge" - Cloudflare:
"cloudflare","cloudflare_pages", or"cloudflare_module" - AWS:
"aws_lambda" - Deno:
"deno_server"or"deno_deploy"
export default defineConfig({
server: {
preset: "netlify_edge"
}
});
Cloudflare Special Config
export default defineConfig({
server: {
preset: "cloudflare_module",
rollupConfig: {
external: ["__STATIC_CONTENT_MANIFEST", "node:async_hooks"]
}
}
});
// In wrangler.toml:
// compatibility_flags = [ "nodejs_compat" ]
Static Site Generation (SSG)
Specific Routes
export default defineConfig({
server: {
prerender: {
routes: ["/", "/about", "/contact"]
}
}
});
All Routes
export default defineConfig({
server: {
prerender: {
crawlLinks: true // Pre-render all routes
}
}
});
Route Preloading
export const route = {
preload: ({ params }) => {
return getProductQuery(params.id);
}
} satisfies RouteDefinition;
export default function ProductPage(props: RouteSectionProps) {
const product = createAsync(() => getProductQuery(props.params.id));
// Preloaded data in props.data
return <div>{product()?.name}</div>;
}
Best Practices
- Configure deployment preset based on hosting platform
- Use prerendering for static pages (blogs, docs, marketing)
- Configure Vite plugins per router when needed
- Use experimental features with caution
- Set proper appRoot and routeDir if using custom structure
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?