Skip to content

Commit

Permalink
chore: re-work build sequence for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Jun 29, 2022
1 parent 32de2f8 commit 9d8d160
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 34 deletions.
4 changes: 0 additions & 4 deletions docs/api/api.js

This file was deleted.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "",
"license": "",
"scripts": {
"build": "remix build && rollup -c",
"build": "remix build",
"dev": "concurrently \"yarn dev:remix\" \"yarn scripts:watch\"",
"dev:remix": "remix dev",
"scripts:build": "ts-node ./scripts/build.ts",
Expand Down
10 changes: 6 additions & 4 deletions docs/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const rehypeMetaAttribute = require('./scripts/mdx/rehype-meta-attribute')
* @type {import('@remix-run/dev/config').AppConfig}
*/
module.exports = {
appDirectory: 'app',
assetsBuildDirectory: 'public/build',
publicPath: '/build/',
serverBuildDirectory: 'api/_build',
serverBuildTarget: 'vercel',
// When running locally in development mode, we use the built in remix
// server. This does not understand the vercel lambda module format,
// so we default back to the standard build output.
server: process.env.NODE_ENV === 'development' ? undefined : './server.js',
ignoredRouteFiles: ['**/.*'],
ignoredRouteFiles: ['.*'],
mdx: () => {
return {
Expand Down
18 changes: 0 additions & 18 deletions docs/rollup.config.ts

This file was deleted.

4 changes: 4 additions & 0 deletions docs/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { createRequestHandler } from '@remix-run/vercel'
import * as build from '@remix-run/dev/server-build'

export default createRequestHandler({ build, mode: process.env.NODE_ENV })
7 changes: 0 additions & 7 deletions docs/vercel.json

This file was deleted.

1 comment on commit 9d8d160

@vercel
Copy link

@vercel vercel bot commented on 9d8d160 Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

beta-react-spring – ./docs

beta-react-spring.vercel.app
beta-react-spring-pmndrs.vercel.app
beta-react-spring-git-beta-docs-pmndrs.vercel.app

Please sign in to comment.