feat: build in static website

This commit is contained in:
jinhojang6 2024-11-05 23:09:44 +09:00
parent 6e1f545102
commit af3c7bfdae
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8
2 changed files with 13 additions and 8 deletions

View File

@ -11,10 +11,16 @@ const withMDX = createMDX({
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'export',
trailingSlash: true,
images: {
unoptimized: true,
},
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
images: {
domains: ['avatars.githubusercontent.com', 'ordinal-operators.s3.amazonaws.com'],
// loader: 'imgix',
domains: ['ordinal-operators.s3.amazonaws.com'],
},
}

View File

@ -1,5 +1,4 @@
import styled from '@emotion/styled'
import Image from 'next/image'
import { useState } from 'react'
interface Props {
@ -29,7 +28,7 @@ const DownloadDropdown = ({ operator }: Props) => {
<DropdownButton onClick={toggleDropdown} isOpen={isOpen}>
<span>Download</span>
<ChevronIconWrapper isOpen={isOpen}>
<Image
<img
src="/assets/chevron-down.svg"
alt="Chevron"
width={12}
@ -41,7 +40,7 @@ const DownloadDropdown = ({ operator }: Props) => {
<DropdownItem href={operator?.gif} download>
<Left>
<Icon>
<Image
<img
src="/assets/download.svg"
alt="Download"
width={12}
@ -55,7 +54,7 @@ const DownloadDropdown = ({ operator }: Props) => {
<DropdownItem href={updateImageUrl(operator?.gif)} download>
<Left>
<Icon>
<Image
<img
src="/assets/download.svg"
alt="Download"
width={12}
@ -69,7 +68,7 @@ const DownloadDropdown = ({ operator }: Props) => {
<DropdownItem href={operator?.image} download>
<Left>
<Icon>
<Image
<img
src="/assets/download.svg"
alt="Download"
width={12}
@ -83,7 +82,7 @@ const DownloadDropdown = ({ operator }: Props) => {
<DropdownItem href={updateImageUrl(operator?.image)} download>
<Left>
<Icon>
<Image
<img
src="/assets/download.svg"
alt="Download"
width={12}