Skip to content

Commit

Permalink
🔧 use the remix dev server to run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuxu committed Oct 6, 2022
1 parent aa32c98 commit 1fb5d74
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 6 deletions.
268 changes: 268 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build:ladle": "ladle build",
"dev": "run-p dev:*",
"dev:css": "npm run generate:css -- --watch",
"dev:remix": "cross-env NODE_ENV=development netlify dev",
"dev:remix": "remix dev",
"dev:ladle": "ladle serve",
"generate:css": "npx tailwindcss -o ./app/tailwind.css",
"start": "cross-env NODE_ENV=production netlify dev",
Expand Down Expand Up @@ -37,6 +37,7 @@
"@ladle/react": "2.4.3",
"@remix-run/dev": "1.7.2",
"@remix-run/eslint-config": "1.7.2",
"@remix-run/serve": "1.7.2",
"@types/react": "18.0.21",
"@types/react-dom": "18.0.6",
"eslint": "8.24.0",
Expand Down
10 changes: 5 additions & 5 deletions remix.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @type {import('@remix-run/dev').AppConfig}
*/
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
devServerPort: 8002,
serverBuildTarget: "netlify",
server: "./server.ts",
server:
process.env.NETLIFY || process.env.NETLIFY_LOCAL
? "./server.ts"
: undefined,
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
Expand Down

0 comments on commit 1fb5d74

Please sign in to comment.