Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@
<PackageVersion Include="MudBlazor" Version="8.15.0" />
<PackageVersion Include="Fluxor.Blazor.Web" Version="6.9.0" />
<PackageVersion Include="Fluxor.Blazor.Web.ReduxDevTools" Version="6.9.0" />
<PackageVersion Include="Refit" Version="10.0.1" />
<PackageVersion Include="Refit.HttpClientFactory" Version="10.0.1" />
<PackageVersion Include="Refit" Version="10.1.6" />
<PackageVersion Include="Refit.HttpClientFactory" Version="10.1.6" />
<!-- Blazor Testing -->
<PackageVersion Include="bUnit" Version="2.6.2" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/roadmap-current.md
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ public class ActivityHub : Hub
12. ✅ Feature/refactor-and-cleanup branch - Merged to master (19 Dez 2025)

### 📅 Alta Prioridade (Próximos 3 meses - Q1-Q2 2026)
1. **Sprint 8B.2: NX Monorepo & Technical Excellence** (Concluída)
1. **Sprint 8B.2: NX Monorepo & Technical Excellence** (EM REVISÃO)
2. ✅ **Sprint 8C: Provider Web App (React + NX)** (Concluída - 21 Mar 2026)
3. ⏳ **Sprint 8D: Admin Portal Migration** (Abril 2026)
4. ⏳ **Sprint 9: BUFFER & RISK MITIGATION** (Abril/Maio 2026)
Expand Down
6 changes: 3 additions & 3 deletions src/Client/MeAjudaAi.Client.Contracts/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net10.0": {
"Refit": {
"type": "Direct",
"requested": "[10.0.1, )",
"resolved": "10.0.1",
"contentHash": "AprsDMXFRU2k+sXZYfiFLYueP7ovEvoGzC2ylAV9i6xh6rcGJOgLiZdugxnEpIrH6WNbiR8OnOrAr06/pZMQaQ=="
"requested": "[10.1.6, )",
"resolved": "10.1.6",
"contentHash": "j82mHFcXJpiJiaLqQgiikmLAu+oYKcIM8ZafipX2s2b2soOS0OGN+Oc+BXkhsG8x6j2M1J23Eac3068yOKLPFA=="
},
"SonarAnalyzer.CSharp": {
"type": "Direct",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@
},
"Refit.HttpClientFactory": {
"type": "Direct",
"requested": "[10.0.1, )",
"resolved": "10.0.1",
"contentHash": "l8+mhfcBm0lSuNF9g1VTEwEHYQKtdqouOybpQkuxSWafSswRmit9COjmw6vd2Odj5k/qWjzzo8EbjYbyoV2dmQ==",
"requested": "[10.1.6, )",
"resolved": "10.1.6",
"contentHash": "brVgMXHX2pp6pMji7tJijygbMwxccIy2vSsPurPmOZ7jSChBjYpiT9bBbJkBDc0hhnNyzvLkkbx0uiHhJuTTEQ==",
"dependencies": {
"Microsoft.Extensions.Http": "9.0.3",
"Refit": "10.0.1"
"Refit": "10.1.6"
}
},
"SonarAnalyzer.CSharp": {
Expand Down Expand Up @@ -449,7 +449,7 @@
"type": "Project",
"dependencies": {
"MeAjudaAi.Contracts": "[1.0.0, )",
"Refit": "[10.0.1, )"
"Refit": "[10.1.6, )"
}
},
"meajudaai.contracts": {
Expand Down Expand Up @@ -599,9 +599,9 @@
},
"Refit": {
"type": "CentralTransitive",
"requested": "[10.0.1, )",
"resolved": "10.0.1",
"contentHash": "AprsDMXFRU2k+sXZYfiFLYueP7ovEvoGzC2ylAV9i6xh6rcGJOgLiZdugxnEpIrH6WNbiR8OnOrAr06/pZMQaQ=="
"requested": "[10.1.6, )",
"resolved": "10.1.6",
"contentHash": "j82mHFcXJpiJiaLqQgiikmLAu+oYKcIM8ZafipX2s2b2soOS0OGN+Oc+BXkhsG8x6j2M1J23Eac3068yOKLPFA=="
}
},
"net10.0/browser-wasm": {}
Expand Down
30 changes: 30 additions & 0 deletions src/Web/MeAjudaAi.Web.Admin/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"jsc": {
"target": "es2017",
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"decoratorMetadata": true,
"legacyDecorator": true
},
"keepClassNames": true,
"externalHelpers": true,
"loose": true
},
"module": {
"type": "commonjs"
},
"sourceMaps": true,
"exclude": [
"jest.config.[ct]s",
".*\\.spec.tsx?$",
".*\\.test.tsx?$",
"./src/jest-setup.ts$",
"./**/jest-setup.ts$",
".*.js$",
".*.d.ts$"
]
}
Comment on lines +1 to +30
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verificar se o Customer project usa .swcrc
echo "=== Verificar .swcrc no Customer project ==="
ls -la src/Web/MeAjudaAi.Web.Customer/.swcrc 2>/dev/null || echo "Customer não possui .swcrc"

echo -e "\n=== Verificar next.config.js do Admin ==="
cat src/Web/MeAjudaAi.Web.Admin/next.config.js 2>/dev/null || echo "Arquivo não encontrado"

echo -e "\n=== Verificar next.config.js do Customer para comparação ==="
cat src/Web/MeAjudaAi.Web.Customer/next.config.js 2>/dev/null || echo "Arquivo não encontrado"

Repository: frigini/MeAjudaAi

Length of output: 737


🌐 Web query:

Next.js 15 custom .swcrc configuration support

💡 Result:

Next.js 15 does not support custom .swcrc configuration files. Next.js uses a customized SWC compiler that manages its own configuration internally. Custom .swcrc files are ignored to prevent incompatibilities, as confirmed in official Next.js documentation and GitHub discussions. SWC configuration is handled through specific options in next.config.js, such as: - compiler: { styledComponents: true, emotion: true, relay: {...} } for framework-specific transforms. - experimental: { swcPlugins: [['plugin', {...}]] } for WASM plugins. - Other flags like transpilePackages, reactCompiler (which uses a hybrid SWC+Babel approach). For advanced customization beyond these, users often fall back to Babel by adding a .babelrc file, which disables SWC automatically. No changes in Next.js 15 enable .swcrc support; minification customization was removed instead.

Citations:


Remover .swcrc – arquivo é ignorado pelo Next.js 15.

O arquivo .swcrc é completamente ignorado pelo Next.js 15. O framework utiliza seu próprio compilador SWC integrado e não suporta arquivos .swcrc personalizados. Qualquer configuração neste arquivo não está sendo aplicada.

Se configuração SWC for necessária, ela deve ser feita no next.config.js usando o objeto compiler ou options experimentais.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/Web/MeAjudaAi.Web.Admin/.swcrc` around lines 1 - 30, The .swcrc file is
ignored by Next.js 15 so delete the .swcrc file and remove its settings; if you
need to preserve any SWC options, migrate them into next.config.js by adding the
equivalent settings under the Next config (use the compiler or relevant
experimental SWC options in next.config.js) instead of .swcrc so Next.js picks
them up; reference the existing .swcrc file and update next.config.js's compiler
(or experimental SWC) object accordingly.

6 changes: 6 additions & 0 deletions src/Web/MeAjudaAi.Web.Admin/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
declare module '*.svg' {
const content: any;
export const ReactComponent: any;
export default content;
}
5 changes: 5 additions & 0 deletions src/Web/MeAjudaAi.Web.Admin/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
20 changes: 20 additions & 0 deletions src/Web/MeAjudaAi.Web.Admin/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//@ts-check

// eslint-disable-next-line @typescript-eslint/no-var-requires
const { composePlugins, withNx } = require('@nx/next');

/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
// Use this to set Nx-specific options
// See: https://nx.dev/recipes/next/next-config-setup
nx: {},
};

const plugins = [
// Add more Next.js plugins to this list if needed.
withNx,
];

module.exports = composePlugins(...plugins)(nextConfig);
15 changes: 15 additions & 0 deletions src/Web/MeAjudaAi.Web.Admin/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { join } = require('path');

// Note: If you use library-specific PostCSS/Tailwind configuration then you should remove the `postcssConfig` build
// option from your application's configuration (i.e. project.json).
//
// See: https://nx.dev/guides/using-tailwind-css-in-react#step-4:-applying-configuration-to-libraries

module.exports = {
plugins: {
tailwindcss: {
config: join(__dirname, 'tailwind.config.js'),
},
autoprefixer: {},
},
};
9 changes: 9 additions & 0 deletions src/Web/MeAjudaAi.Web.Admin/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "MeAjudaAi.Web.Admin",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "MeAjudaAi.Web.Admin",
"projectType": "application",
"tags": [],
"// targets": "to see all targets run: nx show project MeAjudaAi.Web.Admin --web",
"targets": {}
}
Empty file.
Binary file added src/Web/MeAjudaAi.Web.Admin/public/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions src/Web/MeAjudaAi.Web.Admin/src/app/api/hello/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export async function GET(request: Request) {
return new Response('Hello, from API!');
}
Loading
Loading