diff --git a/README.md b/README.md index 8d3c0e27..2acc5862 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,9 @@ jonka asentamisen jälkeen IDEA:n voi laittaa formatoimaan tallentamisen yhteyde # Tarkista formatointi. Voit formatoida koodin ajamalla `ktlint --format` ktlint -# paketoi projektin. Tämä myöskin kopioi node-resurssit target/staticin alle +# paketoi projektin. mvn package - # Voit käyttää tätä jos ajat ympäristöä terminaalin kautta§§ + # Voit käyttää tätä jos ajat ympäristöä terminaalin kautta ./mvnw spring-boot:run ``` diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 480a7cf9..1534eb9b 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -5,6 +5,9 @@ const nextConfig = { // https://nextjs.org/docs/app/building-your-application/deploying/static-exports output: "export", + // point the files straight to maven's target files. + distDir: "../target/classes/static", + // The build fails without this. images: { unoptimized: true diff --git a/pom.xml b/pom.xml index a7ec4509..6071426e 100644 --- a/pom.xml +++ b/pom.xml @@ -188,38 +188,6 @@ - - - - org.apache.maven.plugins - maven-resources-plugin - 3.3.1 - - - copy-react-build - package - - copy-resources - - - ${project.build.outputDirectory}/static - - - ${frontendDir}/out - false - - **/* - - - - - - - - - - -