Skip to content

Commit

Permalink
fix: change to "http-server" because "serve" was setting up weird 301…
Browse files Browse the repository at this point in the history
  • Loading branch information
sneko committed Jun 1, 2023
1 parent 306fcb8 commit 66047ad
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 213 deletions.
2 changes: 1 addition & 1 deletion apps/docs-bootstrap-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"@storybook/manager-api": "^7.0.17",
"bootstrap": "^5.3.0-alpha3",
"glob": "^10.2.6",
"http-server": "^14.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.62.1",
"serve": "^14.2.0",
"storybook": "^7.0.17",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"glob": "^10.2.6",
"handlebars": "^4.7.7",
"he": "^1.2.0",
"http-server": "^14.1.1",
"jsdom": "^22.0.0",
"node-fetch-native": "^1.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.62.1",
"serve": "^14.2.0",
"storybook": "^7.0.17",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/scripts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ program
commands = [
{
target: mainTarget,
command: `serve -l ${mainTarget.port} ${mainFolderPath}/dist`,
command: `http-server -p ${mainTarget.port} ${mainFolderPath}/dist`,
},
...selectedFrameworks.map((framework) => ({
target: framework,
command: `serve -l ${framework.port} ${mainFolderPath}/dist/frameworks/${framework.name}`,
command: `http-server -p ${framework.port} ${mainFolderPath}/dist/frameworks/${framework.name}`,
})),
];

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"pnpm": {
"overrides": {
"@gouvfr/dsfr": "^1.9.3",
"serve": "^14.2.0",
"http-server": "^14.1.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^4.9.3",
Expand Down
Loading

0 comments on commit 66047ad

Please sign in to comment.