Skip to content

Commit

Permalink
fix local dev, and add removind from list
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Feb 5, 2024
1 parent d37b65b commit 708db20
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
5 changes: 4 additions & 1 deletion imports/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export function Column({
variant={i === selected[index] ? 'solid' : 'outlined'} flex={1} p={3} w="100%"
onClick={() => setSelected(selected.map((s, ii) => ii === index ? i : s))}
>{l}</Button>
<Button flex={0} variant="outline">x</Button>
<Button
flex={0} variant="outline"
onClick={() => _lists[1](_lists[0].map((l, ii) => ii === index ? { ...l, list: l.list.filter((f, iii) => iii !== i) } : l))}
>x</Button>
</Flex>)}
</Box>
</Flex>
Expand Down
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
18 changes: 11 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import nextEnv from 'next-env';
import dotenvLoad from 'dotenv-load';
import { PHASE_DEVELOPMENT_SERVER } from 'next/constants.js';

dotenvLoad();

const withNextEnv = nextEnv();

/** @type {import('next').NextConfig}*/
const config = {
output: "export",
basePath: "/contenter",
images: {
unoptimized: true,
},
const config = (phase, { defaultConfig }) => (console.log('phase', phase, 'PHASE_DEVELOPMENT_SERVER', PHASE_DEVELOPMENT_SERVER), {
...(phase !== PHASE_DEVELOPMENT_SERVER ? {
output: "export",
basePath: "/contenter",
images: {
unoptimized: true,
},
} : {}),

distDir: 'app',
strictMode: false,
Expand All @@ -33,6 +37,6 @@ const config = {

return config;
},
}
})

export default withNextEnv(config);

0 comments on commit 708db20

Please sign in to comment.