npm-build: needs: build-and-test name: 'Build NPM Assets' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v2 with: node-version: '18' - name: Install dependencies run: npm install - name: Build Assets run: npm run build - name: Pull changes run: git pull - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: branch: 'staging' commit_message: > chore: build npm assets
jobs: build-and-test: name: 'Build and Tests' runs-on: ubuntu-latest strategy: fail-fast: true steps: - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e with: php-version: '8.2' - uses: actions/checkout@v3 - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" - name: Install Composer Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - name: Directory Permissions run: chmod -R 777 storage bootstrap/cache - name: Generate key run: php artisan key:generate - name: Clear Config and Cache run: | php artisan config:clear php artisan cache:clear - name: Create Database run: | mkdir -p database touch database/database.sqlite - name: Run PEST env: DB_CONNECTION: sqlite DB_DATABASE: database/database.sqlite run: ./vendor/bin/pest - name: Run PHPStan run: ./vendor/bin/phpstan --error-format=github npm-build: needs: build-and-test name: 'Build NPM Assets' runs-on: ubuntu-latest
Call to undefined method Filament\Resources\Pages\PageRegistration::shouldRegisterNavigation()
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.)
protected function getFormModel(): Package|string{ return $this->package ?? Package::class;}
import { defineConfig } from 'vite';import laravel from 'laravel-vite-plugin';import react from '@vitejs/plugin-react';export default defineConfig({ plugins: [ laravel({ input: [ 'resources/css/filament/admin/theme.css', 'resources/css/app.css', 'resources/js/app.tsx', ], ssr: 'resources/js/ssr.tsx', refresh: true, }), react(), ],});