{
	"firestore": {
		"rules": "firestore.rules",
		"indexes": "firestore.indexes.json"
	},
	"functions": {
		"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run lint", "npm --prefix \"$RESOURCE_DIR\" run build"]
	},
	"hosting": {
		"public": "public",
		"headers": [
			{
				"source": "**/",
				"headers": [
					{
						"key": "Cache-Control",
						"value": "no-store, max-age=0"
					}
				]
			},
			{
				"source": "**/*.@(html)",
				"headers": [
					{
						"key": "Cache-Control",
						"value": "no-store, max-age=0"
					}
				]
			}
		],
		"redirects": [
			{
				"source": "/opening.html",
				"destination": "/index.html",
				"type": 301
			},
			{
				"source": "/ending.html",
				"destination": "/index.html",
				"type": 301
			},
			{
				"source": "/select.html",
				"destination": "/index.html",
				"type": 301
			},
			{
				"source": "/game.html",
				"destination": "/index.html",
				"type": 301
			},
			{
				"source": "/result.html",
				"destination": "/index.html",
				"type": 301
			}
		],
		"rewrites": [
			{
				"source": "/plays/**/select.html",
				"destination": "/select.html"
			},
			{
				"source": "/plays/**/opening.html",
				"destination": "/opening.html"
			},
			{
				"source": "/plays/**/game.html",
				"destination": "/game.html"
			},
			{
				"source": "/plays/**/ending.html",
				"destination": "/ending.html"
			},
			{
				"source": "/plays/**/result.html",
				"destination": "/result.html"
			}
		],
		"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
	},
	"emulators": {
		"auth": {
			"port": 9099
		},
		"functions": {
			"port": 5001
		},
		"firestore": {
			"port": 8080
		},
		"hosting": {
			"port": 5000
		},
		"ui": {
			"enabled": true
		}
	}
}
