Skip to content

Commit

Permalink
Merge branch 'master' into fix-access-control-args
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson authored Oct 30, 2020
2 parents b3ee14e + 14c5228 commit 41943ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Fragment, useState } from 'react';
import { Button } from '@keystone-ui/button';
import { Tooltip } from '@keystone-ui/tooltip';
import { PlusIcon } from '@keystone-ui/icons/icons/PlusIcon';
import { CreateItemDrawer } from '@keystone-next/admin-ui/src/components/CreateItemDrawer';
import { CreateItemDrawer } from '@keystone-next/admin-ui/components';
import { DrawerController } from '@keystone-ui/modals';

function LinkToRelatedItems({
Expand Down
9 changes: 8 additions & 1 deletion packages-next/keystone/src/scripts/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ const PORT = process.env.PORT || 3000;

// TODO: Don't generate or start an Admin UI if it isn't configured!!

const devLoadingHTMLFilepath = path.join(
path.dirname(require.resolve('@keystone-next/keystone/package.json')),
'src',
'static',
'dev-loading.html'
);

export const dev = async () => {
console.log('🤞 Starting Keystone');

Expand Down Expand Up @@ -40,7 +47,7 @@ export const dev = async () => {
});
server.use((req, res, next) => {
if (adminUIServer) return adminUIServer(req, res, next);
res.sendFile(path.resolve(__dirname, '../static/dev-loading.html'));
res.sendFile(devLoadingHTMLFilepath);
});
server.listen(PORT, (err?: any) => {
if (err) throw err;
Expand Down

0 comments on commit 41943ae

Please sign in to comment.