chore: align srcDir=app structure (assets, composables, stores, plugins, pages) and prepare for correct alias resolution
This commit is contained in:
parent
bc2babbe90
commit
9a04893909
8 changed files with 10 additions and 10 deletions
|
|
@ -1,2 +1,4 @@
|
|||
@import "tailwindcss";
|
||||
@import "@nuxt/ui";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ export default defineNuxtConfig({
|
|||
strict: true,
|
||||
},
|
||||
|
||||
// Global CSS
|
||||
css: ["~/assets/css/main.css"],
|
||||
// Global CSS (use app/ path due to Nuxt 4 app/ srcDir handling)
|
||||
css: ["/app/assets/css/main.css"],
|
||||
|
||||
// PostCSS configured separately
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
import { defineEventHandler } from 'h3'
|
||||
import { useFixtureIO } from '#imports'
|
||||
import { defineEventHandler } from "h3";
|
||||
import { useFixtureIO } from "~/composables/useFixtureIO";
|
||||
|
||||
export default defineEventHandler(() => {
|
||||
// Export snapshot of in-memory state
|
||||
const { exportAll } = useFixtureIO()
|
||||
return exportAll()
|
||||
})
|
||||
|
||||
|
||||
const { exportAll } = useFixtureIO();
|
||||
return exportAll();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { defineEventHandler, readBody } from "h3";
|
||||
import { useFixtureIO, type AppSnapshot } from "#imports";
|
||||
import { useFixtureIO, type AppSnapshot } from "~/composables/useFixtureIO";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const body = (await readBody(event)) as AppSnapshot;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue